algitee
Results
1
issues of
algitee
执行jdk代理invoke方法时,此处总是返回false; if (advised.getMethodMatcher().matches(method, advised.getTargetSource().getTarget().getClass())) { MethodInterceptor methodInterceptor = advised.getMethodInterceptor(); return methodInterceptor.invoke(new ReflectiveMethodInvocation(advised.getTargetSource().getTarget(), method, args)); } 原因是使调用matches()f方法时;jdk传入的方法是接口的抽法, ()pointcutExpression.matchesMethodExecution(method).alwaysMatches(); 这儿改用方法名和形参个数进行方法的匹配,jdk方法拦截正常 if (matches(targetClass)) { Method[] declaredMethods = targetClass.getDeclaredMethods(); for (Method declaredMethod : declaredMethods)...