Skip to content

Revisit CGLIB AOP proxy warnings for final methods [SPR-15436] #19997

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-15436 and commented

The change triggered by #16241 led to a downgrade of the log category for non-interceptible final methods from WARN to INFO, aligned with the then-new log messages for non-interceptible package-visible methods. However, public final methods which happen to implement methods in a service interface remain a serious problem for CGLIB proxy generation: We should either log those specific messages on WARN again or reject such target classes upfront.


Issue Links:

Referenced from: commits 665e6cf, 43e806c, 9b2f9e6, 0d0b879

Activity

  1. spring-projects-issues commented on Apr 17, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    CglibAopProxy logs an explicit warning for an interface-implementing method marked as final now, covering the particular case where interception would work with an interface-based proxy but does not work with a target-class proxy. This happens at WARN level now, whereas the regular messages about final methods (potentially never invoked through the proxy) keep happening at INFO level.

  2. added
    in: core
    type: task
    on Jan 11, 2019
  3. added this to the 4.3.8 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: coretype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions