dufoli commented on pull request #721:
URL: https://github.com/apache/cxf/pull/721#issuecomment-732144242
@rmannibucau I have fixed visitMaxs and Throwable and no more issue on test !
I have not import the following patch because all visitmaxs has been
changed. Is it really needed ?
```
---
a/core/src/main/java/org/apache/cxf/common/util/ReflectionInvokationHandler.java
+++
b/core/src/main/java/org/apache/cxf/common/util/ReflectionInvokationHandler.java
@@ -53,6 +53,12 @@ public class ReflectionInvokationHandler implements
InvocationHandler {
Method m;
try {
m = targetClass.getMethod(method.getName(), parameterTypes);
+ if ("visitMaxs".equalsIgnoreCase(method.getName()) && 2 ==
method.getParameterCount()) { // force to compute frames and stack
+ if (!m.isAccessible()) {
+ ReflectionUtil.setAccessible(m);
+ }
+ return m.invoke(target, 0, 0);
+ }
} catch (NoSuchMethodException nsme) {
boolean[] optionals = new
boolean[method.getParameterTypes().length];
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]