ultimateTargetClass falls back to raw class instead of returning null
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3515 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
74ac938aac
commit
f9c20e30b5
|
|
@ -21,6 +21,7 @@ import java.util.Arrays;
|
|||
import org.springframework.aop.SpringProxy;
|
||||
import org.springframework.aop.TargetClassAware;
|
||||
import org.springframework.aop.TargetSource;
|
||||
import org.springframework.aop.support.AopUtils;
|
||||
import org.springframework.aop.target.SingletonTargetSource;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
|
|
@ -62,6 +63,9 @@ public abstract class AopProxyUtils {
|
|||
}
|
||||
current = nested;
|
||||
}
|
||||
if (result == null) {
|
||||
result = (AopUtils.isCglibProxy(candidate) ? candidate.getClass().getSuperclass() : candidate.getClass());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue