Skip to content

Add support for Spring AOT with BeanRegistrar for attribute AutoProxyUtils.originalTargetClass #35645

@sdeleuze

Description

@sdeleuze

Related stack trace reported by @joshlong:

Exception in thread "main" java.lang.UnsupportedOperationException: AOT post processing of attribute org.springframework.aop.framework.autoproxy.AutoProxyUtils.originalTargetClass is not supported yet with BeanRegistrar
        at org.springframework.context.annotation.ConfigurationClassPostProcessor$BeanRegistrarAotContribution.checkUnsupportedFeatures(ConfigurationClassPostProcessor.java:934)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor$BeanRegistrarAotContribution.generateApplyBeanRegistrarsMethod(ConfigurationClassPostProcessor.java:914)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor$BeanRegistrarAotContribution.lambda$applyTo$0(ConfigurationClassPostProcessor.java:875)

Reproducer: https://github.com/joshlong-attic/2025-10-15-bootiful-spring-boot-a-dogumentary

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions