This content has been marked as final.
Show 3 replies
-
1. Re: JBAS-7049: AccessController permission check throwing NP
anil.saldhana Jul 9, 2009 5:39 PM (in response to anil.saldhana)OpenJDK6 line 330 of AccessControlContext:
if (!dumpDebug) { debug.println("access denied " + perm); }
OpenJDK7:if (dumpDebug) { debug.println("access denied " + perm); }
So definitely this got fixed in openjdk7. -
2. Re: JBAS-7049: AccessController permission check throwing NP
anil.saldhana Jul 9, 2009 5:44 PM (in response to anil.saldhana)Thanks to DML.
Actually the openjdk7 code is:for (int i=0; i< context.length; i++) { if (context != null && !context.implies(perm)) { if (dumpDebug) { debug.println("access denied " + perm); } if (Debug.isOn("failure") && debug != null) { // Want to make sure this is always displayed for failure, // but do not want to display again if already displayed // above. if (!dumpDebug) { debug.println("access denied " + perm); } Thread.currentThread().dumpStack(); final ProtectionDomain pd = context; final Debug db = debug; AccessController.doPrivileged (new PrivilegedAction<Void>() { public Void run() { db.println("domain that failed "+pd); return null; } }); } throw new AccessControlException("access denied "+perm, perm); } }
Looks like the debug != null check has been added on the if condition in openjdk7. -
3. Re: JBAS-7049: AccessController permission check throwing NP
anil.saldhana Jul 9, 2009 6:30 PM (in response to anil.saldhana)DML created a bug : http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=364