Skip to content

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

Closed

Description

@spring-projects-issues

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

Activity

  1. spring-projects-issues commented on Nov 22, 2013

    @spring-projects-issues
    CollaboratorAuthor
  2. added
    type: bug
    status: backported
    in: core
    on Jan 11, 2019
  3. added this to the 4.0 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: backportedtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions