Tentative fix for Java reflection bug where we're unable to call public methods
declared in non-public classes.
This commit is contained in:
parent
63f7a2e4df
commit
d9c4b3d6f3
1 changed files with 9 additions and 5 deletions
|
@ -399,6 +399,8 @@ public class ClassInfo {
|
|||
}
|
||||
|
||||
} // if class not public
|
||||
if (Modifier.isPublic (method.getModifiers ()))
|
||||
method.setAccessible (true);
|
||||
// save it
|
||||
methodVector.addElement(method);
|
||||
}
|
||||
|
@ -516,6 +518,8 @@ public class ClassInfo {
|
|||
}
|
||||
} // for
|
||||
} // if class not public
|
||||
if (Modifier.isPublic (method.getModifiers ()))
|
||||
method.setAccessible (true);
|
||||
// save it
|
||||
methodVector.addElement(method);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue