Merge pull request #29773 from qpakzk
* pr/29773: Log attempt at proxying final methods to WARN instead of INFO Closes gh-29773
This commit is contained in:
commit
6e5c4ef864
|
@ -281,8 +281,8 @@ class CglibAopProxy implements AopProxy, Serializable {
|
||||||
int mod = method.getModifiers();
|
int mod = method.getModifiers();
|
||||||
if (!Modifier.isStatic(mod) && !Modifier.isPrivate(mod)) {
|
if (!Modifier.isStatic(mod) && !Modifier.isPrivate(mod)) {
|
||||||
if (Modifier.isFinal(mod)) {
|
if (Modifier.isFinal(mod)) {
|
||||||
if (logger.isInfoEnabled() && implementsInterface(method, ifcs)) {
|
if (logger.isWarnEnabled() && implementsInterface(method, ifcs)) {
|
||||||
logger.info("Unable to proxy interface-implementing method [" + method + "] because " +
|
logger.warn("Unable to proxy interface-implementing method [" + method + "] because " +
|
||||||
"it is marked as final: Consider using interface-based JDK proxies instead!");
|
"it is marked as final: Consider using interface-based JDK proxies instead!");
|
||||||
}
|
}
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue