Skip to content

upgrading spring naming policy for CGLIB proxies #36717

@airwin17

Description

@airwin17

the current behavior of spring naming policy for CGLIB proxies is like this <beanName>$$SpringCGLIB$$N where N is the first available namespace . this is working very well in JVM but breaks in native image because proxies are be loaded from classpath instead for dynamically generated and if 2 proxies for bthe same bean are loaded spring will end up looking for both of them in $$0 creating issue #30985 .
proposal :
since we can not have 2 proxies for the same bean at the same operation level , instead of $$N representing the first available namespace it will represent the operating level of the proxy (0=aop, 1 = lazy, 2 =scope ,3= configs ...so on).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions