Skip to content

Introduce AOT generated class proxies #28115

@sdeleuze

Description

@sdeleuze

GraalVM native-image only supports JDK dynamic proxies when configured explicitly on interfaces.

For proxies on classes, typically created at runtime with CGLIB on the JVM, there is a need to create such proxies Ahead-Of-Time. That's what @aclement did in Spring Native:

Spring Framework 6 should provide similar support for AOT generated class proxies, potentially by:

  • Leveraging ClassProxyHint to configure them
  • Deciding how the creation of the proxy should be implemented
  • Plug it into the AOT processing
  • Implement proper inferring if possible
  • Replace the substitution by proper handling in DefaultAopProxyFactory and/or other relevant classes

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions