We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4477c4b commit 226e913Copy full SHA for 226e913
src/main/java/org/apache/ibatis/plugin/Plugin.java
@@ -49,7 +49,7 @@ public static Object wrap(Object target, Interceptor interceptor) {
49
Class<?> type = target.getClass();
50
Class<?>[] interfaces = getAllInterfaces(type, signatureMap);
51
if (interfaces.length > 0) {
52
- if (Proxy.isProxyClass(target.getClass())) {
+ if (Proxy.isProxyClass(type)) {
53
InvocationHandler invocationHandler = Proxy.getInvocationHandler(target);
54
if (invocationHandler instanceof Plugin) {
55
Map<Method, List<Interceptor>> interceptorMap = ((Plugin) invocationHandler).getInterceptorMap();
0 commit comments