Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6458065

Executors.privilegedThreadFactory and privilegedCallable should specify permissions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 6
    • 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")

            Unassigned Unassigned
            dmiltsov Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: