Skip to content

AOT no longer generates BeanInstanceSupplier signature for a CGLIB proxy with its public type #33998

@Eng-Fouad

Description

@Eng-Fouad

After upgrading to Sprint Boot 3.4.0, I got this error:

> Task :compileAotTestJava FAILED
C:\Users\fouad\IdeaProjects\spring-boot-3.4-bug\build\generated\aotTestSources\io\fouad\SecurityConfig__TestContext001_BeanDefinitions.java:34: error: incompatible types: BeanInstanceSupplier<SecurityConfig$$SpringCGLIB$$0> cannot be converted to InstanceSupplier<SecurityConfig>
    InstanceSupplier<SecurityConfig> instanceSupplier = getSecurityConfigInstanceSupplier();
                                                                                         ^

Here is a reproducer: https://github.com/Eng-Fouad/spring-boot-3.4-bug

Metadata

Metadata

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions