AOT fails when generating code for a component declared as an inner-class #33683
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: regression
A bug that is also a regression
Milestone
Affects: 6.2.0-SNAPSHOT
This appears to be a regression from 6.2.0-RC1.
Compilation of AOT-generated code fails for this app:
The failure is:
The generated source is:
Downgrading to Framework 6.2.0-RC1 fixes the problem as the generated source is then the following:
Note the change in
getFooInstanceSupplier
fromnew AotRegressionApplication.Foo(args.get(0))
which fails to compile asFoo
is not static toregisteredBean.getBeanFactory().getBean(AotRegressionApplication.class).new Foo())
which works.The text was updated successfully, but these errors were encountered: