Executors.privilegedThreadFactory and privilegedCallable should specify permissions

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: core-libs

      The spec for the methods Executors.privilegedThreadFactory() and Executors.privilegedCallableUsingCurrentClassLoader(...) says:
      "Throws: AccessControlException - if the current access control context does not have permission to both set and get context class loader"

      It should be specified in obvious way which exactly permissions required to get/set context class loader.
      For example:
      Throws: AccessControlException - if the current access control context does not have RuntimePermission("getContextClassLoader") and RuntimePermission("setContextClassLoader")

            Assignee:
            Doug Lea
            Reporter:
            Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: