Log attempt at proxying final methods to WARN instead of INFO
See gh-29773
This commit is contained in:
parent
7bf520fa8d
commit
fcbe5fa73f
|
|
@ -281,8 +281,8 @@ class CglibAopProxy implements AopProxy, Serializable {
|
|||
int mod = method.getModifiers();
|
||||
if (!Modifier.isStatic(mod) && !Modifier.isPrivate(mod)) {
|
||||
if (Modifier.isFinal(mod)) {
|
||||
if (logger.isInfoEnabled() && implementsInterface(method, ifcs)) {
|
||||
logger.info("Unable to proxy interface-implementing method [" + method + "] because " +
|
||||
if (logger.isWarnEnabled() && 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!");
|
||||
}
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue