|
|
|
|
@ -289,10 +289,16 @@ class CglibAopProxy implements AopProxy, Serializable {
@@ -289,10 +289,16 @@ class CglibAopProxy implements AopProxy, Serializable {
|
|
|
|
|
int mod = method.getModifiers(); |
|
|
|
|
if (!Modifier.isStatic(mod) && !Modifier.isPrivate(mod)) { |
|
|
|
|
if (Modifier.isFinal(mod)) { |
|
|
|
|
if (logger.isWarnEnabled() && implementsInterface(method, ifcs)) { |
|
|
|
|
if (logger.isWarnEnabled() && Modifier.isPublic(mod)) { |
|
|
|
|
if (implementsInterface(method, ifcs)) { |
|
|
|
|
logger.warn("Unable to proxy interface-implementing method [" + method + "] because " + |
|
|
|
|
"it is marked as final, consider using interface-based JDK proxies instead."); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
logger.warn("Public final method [" + method + "] cannot get proxied via CGLIB, " + |
|
|
|
|
"consider removing the final marker or using interface-based JDK proxies."); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
|
logger.debug("Final method [" + method + "] cannot get proxied via CGLIB: " + |
|
|
|
|
"Calls to this method will NOT be routed to the target instance and " + |
|
|
|
|
|