424 |
public void checkAccess(Thread thread) |
public void checkAccess(Thread thread) |
425 |
{ |
{ |
426 |
if (thread.getThreadGroup() != null |
if (thread.getThreadGroup() != null |
427 |
&& thread.getThreadGroup().getParent() != null) |
&& thread.getThreadGroup().getParent() == null) |
428 |
checkPermission(new RuntimePermission("modifyThread")); |
checkPermission(new RuntimePermission("modifyThread")); |
429 |
} |
} |
430 |
|
|
457 |
*/ |
*/ |
458 |
public void checkAccess(ThreadGroup g) |
public void checkAccess(ThreadGroup g) |
459 |
{ |
{ |
460 |
if (g.getParent() != null) |
if (g.getParent() == null) |
461 |
checkPermission(new RuntimePermission("modifyThreadGroup")); |
checkPermission(new RuntimePermission("modifyThreadGroup")); |
462 |
} |
} |
463 |
|
|