Open
Description
Hi!
in this case you trying to set accessible to methods in Object.class
why?
For example, in class org.powermock.reflect.internal.WhiteboxImpl 1505 line
while (thisType != null) { final Class<?> type = thisType; final Method[] declaredMethods = AccessController.doPrivileged(new PrivilegedAction<Method[]>() { @Override public Method[] run() { return type.getDeclaredMethods(); } }); for (Method method : declaredMethods) { if(!"finalize".equals(method.getName())) { method.setAccessible(true); methods.add(method); } } Collections.addAll(methods, type.getMethods()); thisType = thisType.getSuperclass(); }
Metadata<
36E7
/h2>Metadata
Assignees
No one assigned
Labels
No labelsNo labelsType
No typeProjects
No projectsMilestone
No milestone
Relationships
None yetDevelopment
No branches or pull requestsIssue actions
Assignees
Labels
No labels