solve dubbo and service class without method intercept failure (#3362)

This commit is contained in:
刘新元 Liu XinYuan 2019-08-28 20:10:48 +08:00 committed by 吴晟 Wu Sheng
parent cadaab03ae
commit ed5a1fc2d2
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ public class MakeWrapperInterceptor implements StaticMethodsAroundInterceptor {
return false;
}
for (Method m : methods) {
if (m.getDeclaringClass() != Object.class) {
if (m.getDeclaringClass() != Object.class && !"getSkyWalkingDynamicField".equals(m.getName()) && !"setSkyWalkingDynamicField".equals(m.getName())) {
return true;
}
}

View File

@ -242,7 +242,7 @@ public class MakeWrapperInterceptor implements StaticMethodsAroundInterceptor {
return false;
}
for (Method m : methods) {
if (m.getDeclaringClass() != Object.class) {
if (m.getDeclaringClass() != Object.class && !"getSkyWalkingDynamicField".equals(m.getName()) && !"setSkyWalkingDynamicField".equals(m.getName())) {
return true;
}
}