Polishing

This commit is contained in:
Juergen Hoeller
2018-01-19 21:30:37 +01:00
parent 5520e730f1
commit 572c668726
11 changed files with 110 additions and 109 deletions

View File

@@ -105,13 +105,14 @@ public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint imple
return this.mostSpecificMethod;
}
Method method = getMethod();
if (method != null && AopUtils.isAopProxy(this.bean)) {
Class<?> targetClass = AopProxyUtils.ultimateTargetClass(this.bean);
return AopUtils.getMostSpecificMethod(method, targetClass);
}
else {
return method;
if (method != null) {
Object bean = getBean();
if (AopUtils.isAopProxy(bean)) {
Class<?> targetClass = AopProxyUtils.ultimateTargetClass(bean);
method = AopUtils.getMostSpecificMethod(method, targetClass);
}
}
return method;
}
/**