-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail more explicitly when AOT attempts to handle a bean definition that uses an instance supplier #29556
Comments
While working on this, I found that the current behavior is that instance suppliers on bean definition where the bean class has a default constructor are just ignored. Boot is implicitly leveraging this behavior, see spring-projects/spring-boot#33763 for more details. Boot and other Spring portfolio projects should probably stop using instance supplier as a first step, and then we should throw an error during AOT processing (potentially in |
Draft commit available at https://github.com/sdeleuze/spring-framework/tree/gh-29556. |
Reopening for the Boot test failures reported by @wilkinsona |
As revealed by #29555, we should throw a more tailored exception when a bean definition uses an instance supplier. If one is set, the container must honor it and there's no way for us to inspect it to generate the appropriate code.
The text was updated successfully, but these errors were encountered: