Kabir Khan wrote:
My plan there is to modify JavassistFieldInfo and JavassistMethodInfo to throw an exception if an attempt is made to access them if they are not public and there is a security manager present.
Actually, I will make this behave as their reflect counterparts
public static void checkAccess(MemberInfo info)
{
if (!info.isPublic() && System.getSecurityManager() != null)
AccessController.checkPermission(new ReflectPermission("suppressAccessChecks"));
}