/[classpath]/classpath/java/lang/SecurityManager.java
ViewVC logotype

Diff of /classpath/java/lang/SecurityManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20.2.9 by gnu_andrew, Wed Sep 28 17:50:20 2005 UTC revision 1.20.2.10 by gnu_andrew, Sun Nov 27 21:00:37 2005 UTC
# Line 424  public class SecurityManager Line 424  public class SecurityManager
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    
# Line 457  public class SecurityManager Line 457  public class SecurityManager
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    

Legend:
Removed from v.1.20.2.9  
changed lines
  Added in v.1.20.2.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26