Kabir Khan [
http://community.jboss.org/people/kabir.khan%40jboss.com] replied to the
discussion
"Testing jboss-reflect with a SecurityManager enabled"
To view the discussion, visit:
http://community.jboss.org/message/534033#534033
--------------------------------------------------------------
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"));
}
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/534033#534033]
Start a new discussion in JBoss Microcontainer Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]