Tentative fix for Java reflection bug where we're unable to call public methods

declared in non-public classes.
This commit is contained in:
hns 2002-11-27 17:22:53 +00:00
parent 63f7a2e4df
commit d9c4b3d6f3

View file

@ -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);
}