# | Line 399 | Line 399 | public class ExecutorsTest extends JSR16 | |
---|---|---|
399 | * Without permissions, calling privilegedCallable throws ACE | |
400 | */ | |
401 | public void testprivilegedCallableWithNoPrivs() throws Exception { | |
402 | + | // Avoid classloader-related SecurityExceptions in swingui.TestRunner |
403 | + | Executors.privilegedCallable(new CheckCCL()); |
404 | + | |
405 | Runnable r = new CheckedRunnable() { | |
406 | public void realRun() throws Exception { | |
407 | if (System.getSecurityManager() == null) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |