# | 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> { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |