337 |
|
try { |
338 |
|
Thread current = Thread.currentThread(); |
339 |
|
threadAssertTrue(!current.isDaemon()); |
340 |
< |
threadAssertTrue(current.getPriority() == Thread.NORM_PRIORITY); |
340 |
> |
threadAssertTrue(current.getPriority() <= Thread.NORM_PRIORITY); |
341 |
|
ThreadGroup g = current.getThreadGroup(); |
342 |
|
SecurityManager s = System.getSecurityManager(); |
343 |
|
if (s != null) |
392 |
|
try { |
393 |
|
Thread current = Thread.currentThread(); |
394 |
|
threadAssertTrue(!current.isDaemon()); |
395 |
< |
threadAssertTrue(current.getPriority() == Thread.NORM_PRIORITY); |
395 |
> |
threadAssertTrue(current.getPriority() <= Thread.NORM_PRIORITY); |
396 |
|
ThreadGroup g = current.getThreadGroup(); |
397 |
|
SecurityManager s = System.getSecurityManager(); |
398 |
|
if (s != null) |
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> { |