Refined log message for interface-implementing method
Issue: SPR-15436
This commit is contained in:
parent
fd1d8aeeb4
commit
665e6cf6ca
|
@ -262,8 +262,8 @@ class CglibAopProxy implements AopProxy, Serializable {
|
||||||
if (!Modifier.isStatic(mod)) {
|
if (!Modifier.isStatic(mod)) {
|
||||||
if (Modifier.isFinal(mod)) {
|
if (Modifier.isFinal(mod)) {
|
||||||
if (implementsInterface(method, ifcs)) {
|
if (implementsInterface(method, ifcs)) {
|
||||||
logger.warn("Unable to proxy interface-implmenting method [" + method + "] because " +
|
logger.warn("Unable to proxy interface-implementing method [" + method + "] because " +
|
||||||
"it is marked as final: Consider using interface-based proxies instead!");
|
"it is marked as final: Consider using interface-based JDK proxies instead!");
|
||||||
}
|
}
|
||||||
logger.info("Final method [" + method + "] cannot get proxied via CGLIB: " +
|
logger.info("Final method [" + method + "] cannot get proxied via CGLIB: " +
|
||||||
"Calls to this method will NOT be routed to the target instance and " +
|
"Calls to this method will NOT be routed to the target instance and " +
|
||||||
|
|
Loading…
Reference in New Issue