You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot override singleton with scoped proxy [SPR-10744] #15370
in: coreIssues in core modules (aop, beans, core, context, expression)in: testIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug
For testing purposes, I am trying to override a bean configured as a singleton (in production) by making it a scoped proxy using a custom testing scope. The testing configuration extends the production configuration.
However, this bean is never loaded as a scoped proxy at all! When I apply the test configuration, the bean is always autowired as a singleton instead of (the desired) scoped proxy (regardless whether it's a CGLIB or JDK dynamic proxy).
in: coreIssues in core modules (aop, beans, core, context, expression)in: testIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug
Activity
spring-projects-issues commentedon Apr 28, 2014
Juergen Hoeller commented
This has effectively been fixed along with #15620.
Juergen