Skip to content

Scoped beans force all AOP proxies to CGLib proxies. Setting <aop:config proxy-target-class="false"> doesn't change this behaviour. [SPR-3071] #7757

@spring-projects-issues

Description

@spring-projects-issues

Luciano Montebove opened SPR-3071 and commented

When in an applicationContext configuration file is added a scoped bean as for example :
<bean id="id" class="com.Test"
scope="session">
<aop:scoped-proxy />
</bean>
All AOP proxies even not involved with this bean will be CGLib proxies.
Trying to force JDK proxies with <aop:config proxy-target-class="false"> doesn't produce any effect.


Affects: 2.0.2

Issue Links:

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions