Skip to content

Commit 226e913

Browse files
authored
Interceptor optimization mybatis#1993
1 parent 4477c4b commit 226e913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/plugin/Plugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static Object wrap(Object target, Interceptor interceptor) {
4949
Class<?> type = target.getClass();
5050
Class<?>[] interfaces = getAllInterfaces(type, signatureMap);
5151
if (interfaces.length > 0) {
52-
if (Proxy.isProxyClass(target.getClass())) {
52+
if (Proxy.isProxyClass(type)) {
5353
InvocationHandler invocationHandler = Proxy.getInvocationHandler(target);
5454
if (invocationHandler instanceof Plugin) {
5555
Map<Method, List<Interceptor>> interceptorMap = ((Plugin) invocationHandler).getInterceptorMap();

0 commit comments

Comments
 (0)