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

InnocuousThread creation should not require the caller to possess enableContextClassLoaderOverride

    XMLWordPrintable

    Details

    • Resolved In Build:
      b31
    • Verification:
      Not verified

      Backports

        Description

        Currently JDK code that wants to create an innocuous thread is required to do so within a privileged context that has the "enableContextClassLoaderOverride" RuntimePermission ( since the InnocuousThread class overrides setContextClassLoader ). This permissions should not be required, especially if code in a de-privileged module wants to create an innocuous thread.

        The factory methods for creating innocuous threads should assert privileges before constructing the thread.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                chegar Chris Hegarty
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: