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

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

XMLWordPrintable

    • b51
    • sparc
    • solaris_10
    • Not verified

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: