Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7067728 Remove stopThread RuntimePermission from the default java.policy
  3. JDK-8175299

Release Note: Removed stopThread RuntimePermission from the default java.policy

XMLWordPrintable

    • Verified

      The default `java.policy` no longer grants `stopThread` runtime permission in JDK 9.

      In previous releases, untrusted code had the `stopThread` runtime permission by default. This allows untrusted code to call `Thread::stop` ( on threads other than the current one ). Having an arbitrary exception thrown asynchronously is not something that trusted code should be expected to handle gracefully. So this permission is removed by default in JDK 9. The following line is deleted from the file `conf/security/java.policy` : `permission java.lang.RuntimePermission "stopThread";`

            chegar Chris Hegarty
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: