Skip to content

Commit

Permalink
fix a minor issue with the backport
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jul 28, 2022
1 parent 11817a7 commit 955a9a8
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -86,10 +86,11 @@ public static Class[] completeProxiedInterfaces(AdvisedSupport advised) {
Class[] specifiedInterfaces = advised.getProxiedInterfaces();
if (specifiedInterfaces.length == 0) {
// No user-specified interfaces: check whether target class is an interface.
Class<?> targetClass = advised.getTargetClass();
Class targetClass = advised.getTargetClass();
if (targetClass != null) {
if (targetClass.isInterface()) {
advised.setInterfaces(targetClass);
specifiedInterfaces = new Class[] {targetClass};
advised.setInterfaces(specifiedInterfaces);
}
else if (Proxy.isProxyClass(targetClass)) {
advised.setInterfaces(targetClass.getInterfaces());
Expand Down

0 comments on commit 955a9a8

Please sign in to comment.