ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ExecutorsTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ExecutorsTest.java (file contents):
Revision 1.17 by dl, Mon Apr 3 15:00:59 2006 UTC vs.
Revision 1.19 by jsr166, Tue Aug 4 16:06:12 2009 UTC

# Line 427 | Line 427 | public class ExecutorsTest extends JSR16
427      }
428  
429      void checkCCL() {
430 <            AccessController.getContext().checkPermission(new RuntimePermission("getContextClassLoader"));
430 >        SecurityManager sm = System.getSecurityManager();
431 >        if (sm != null) {
432 >            sm.checkPermission(new RuntimePermission("setContextClassLoader"));
433 >            sm.checkPermission(new RuntimePermission("getClassLoader"));
434 >        }
435      }
436  
437      class CheckCCL implements Callable<Object> {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines