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
Revisit CGLIB AOP proxy warnings for final methods [SPR-15436] #19997
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.
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.
Activity
spring-projects-issues commentedon Apr 17, 2017
Juergen Hoeller commented
CglibAopProxylogs an explicit warning for an interface-implementing method marked asfinalnow, 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.