[concurrency-interest] ThreadPoolExecutor.shutdown() and permission

Remi Forax forax at univ-mlv.fr
Wed Oct 19 10:53:43 EDT 2005


In ThreadPoolExecutor.shutdown(), if i have correctly understand the
documentation, the code first checks if permission "modifyThread" is granted
and then for each worker threads checks checkAccess.

Why in order to check permission "modifyThread",
you use AccessController.checkPermission() and not
securityManager.checkPermission() ?

This pattern doesn't seems to match with the security
architecture describes here :
http://java.sun.com/j2se/1.5.0/docs/guide/security/spec/security-specTOC.fm.html

Rémi Forax






More information about the Concurrency-interest mailing list