Closed
Description
Piotr Findeisen opened SPR-11107 and commented
When using <tx:annotation-driven />
and a bean class has
@Transactional
methodpublic static final
methodsomeMethod
a warning is generated:
WARN [org.springframework.aop.framework.CglibAopProxy] - <Unable to proxy method [public static final void MyClass.someMethod()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.>
This makes no sense -- static methods should not be proxied anyway (what would that mean?).
This is a regression compared to Spring 3.1.2, where the warning was not printed for static methods.
Affects: 3.2.5
Issue Links:
- Clarification: Spring AOP pointcuts match protected methods when CGLIB is used [SPR-15354] #19917 Clarification: Spring AOP pointcuts match protected methods when CGLIB is used
- CglibAopProxy needs to detect package-visible methods when defined in a different ClassLoader [SPR-11618] #16241 CglibAopProxy needs to detect package-visible methods when defined in a different ClassLoader
Backported to: 3.2.6