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

java.policy file contains stale link to http://java.sun.com/notes

    XMLWordPrintable

Details

    • b51
    • sparc
    • solaris_10
    • Not verified

    Backports

      Description

        The JRE/lib/security/java.policy file contains the following lines:

                // Allows any thread to stop itself using the java.lang.Thread.stop()
                // method that takes no argument.
                // Note that this permission is granted by default only to remain
                // backwards compatible.
                // It is strongly recommended that you either remove this permission
                // from this policy file or further restrict it to code sources
                // that you specify, because Thread.stop() is potentially unsafe.
                // See "http://java.sun.com/notes" for more information.
                permission java.lang.RuntimePermission "stopThread";

        However, the link "http://java.sun.com/notes" does not exist anymore.

        I recommend we replace the sentence "See "http://java.sun.com/notes" for more information." with "See the method java.lang.Thread.stop() for more information." This will avoid JDK specific links and links being removed in the future. The method definition contains more information about the issue and a link to the JDK guide for even more information:

        http://java.sun.com/javase/6/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html

        Attachments

          Issue Links

            Activity

              People

                mullan Sean Mullan
                mullan Sean Mullan
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: