Support for InjectionPoint
in bean factory methods when using AOT
#30401
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
Affects: Spring Framework 6.0.8
When using AOT (via gradle
bootBuildImage
task) any bean factory method that has a parameter of typeInjectionPoint
results in anUnsatisfiedDependencyException
thrown inBeanInstanceSupplier.java:343
.It should be possible to inject such an instance because it is also created when creating the exception.
For an MCVE see here.
When started with
./gradlew :bootRun
it successfully executes and logsrunning logging runner
.When starting the image that is produced with
./gradlew :bootBuildImage
it fails with the following messageThe text was updated successfully, but these errors were encountered: