[jboss-user] [JBoss Microcontainer Development] - Testing jboss-reflect with a SecurityManager enabled

Kabir Khan do-not-reply at jboss.com
Thu Mar 25 13:44:02 EDT 2010

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

Start a new discussion in JBoss Microcontainer Development at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100325/fd94a8be/attachment.html 

More information about the jboss-user mailing list