Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"CglibAopProxy: Unable to proxy method" WARN when bean class contains static final method [SPR-11107] #15733

Closed
spring-projects-issues opened this issue Nov 22, 2013 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 22, 2013

Piotr Findeisen opened SPR-11107 and commented

When using <tx:annotation-driven /> and a bean class has

  • @Transactional method
  • public static final method someMethod

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:

Backported to: 3.2.6

@spring-projects-issues
Copy link
Collaborator Author

Piotr Findeisen commented

Repro project spring-attic/spring-framework-issues#62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants