ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.57 by dl, Mon Apr 12 12:02:39 2004 UTC vs.
Revision 1.58 by dl, Wed Jun 9 23:22:06 2004 UTC

# Line 882 | Line 882 | public class ThreadPoolExecutor extends
882       * or the security manager's <tt>checkAccess</tt>  method denies access.
883       */
884      public void shutdown() {
885 <        // Fail if caller doesn't have modifyThread permission
885 >        // Fail if caller doesn't have modifyThread permission. We
886 >        // explicity chack permissions directly because we can't trust
887 >        // implementations of SecurityManager to correctly override
888 >        // the "check access" methods such that our documented
889 >        // security policy is implemented.
890          SecurityManager security = System.getSecurityManager();
891          if (security != null)
892              java.security.AccessController.checkPermission(shutdownPerm);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines