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
Ignore container callback and marker interfaces for auto-proxy decisions [SPR-11416] #16043
Spring's auto-proxy creation infrastructure currently switches to a target-class proxy only if it has been explicitly requested or if no interfaces are being implemented at all. We should be smarter here and ignore container callback and marker interfaces for that decision, falling back to a target-class proxy even when BeanFactoryAware, InitializingBean etc are the only interfaces being implemented.
Please note that the resolution of this issue prior to #14113 may cause CGLIB-related memory issues to become more common in transactional integration testing scenarios, since subclasses of AbstractTransactionalJUnit4SpringContextTests and AbstractTransactionalTestNGSpringContextTests will now be proxied by class instead of via the ApplicationContextAware interface.
Activity
spring-projects-issues commentedon Feb 12, 2014
Sam Brannen commented
Please note that the resolution of this issue prior to #14113 may cause CGLIB-related memory issues to become more common in transactional integration testing scenarios, since subclasses of
AbstractTransactionalJUnit4SpringContextTestsandAbstractTransactionalTestNGSpringContextTestswill now be proxied by class instead of via theApplicationContextAwareinterface.