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

Deprecate com.sun.jdi.JDIPermission for removal

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 25
    • core-svc
    • None
    • source, behavioral
    • low
    • Deprecation for removal of unused class.
    • Java API
    • JDK

      Summary

      The Permission class in the jdk.jdi module is obsolete and unused, as the SecurityManager is now permanently disabled by JEP 486. Therefore deprecate for future removal.

      Problem

      Permission classes in the jdk.jdi module are obsolete and unused.

      Solution

      Deprecate for future removal.

      Specification

      Change in src/jdk.jdi/share/classes/com/sun/jdi/JDIPermission.java

      @@ -33,6 +33,7 @@
        * @apiNote
        * This permission cannot be used for controlling access to resources
        * as the Security Manager is no longer supported.
      + * Consequently this class is deprecated for removal in a future release.
        *
        * @author  Tim Bell
        * @since   1.5
      @@ -44,8 +45,11 @@
        * @see java.security.PermissionCollection
        * @see java.lang.SecurityManager
        *
      + * @deprecated This class was only useful in conjunction with the Security Manager,
      + * which is no longer supported. There is no replacement for this class.
        */
      
      +@Deprecated(since="25", forRemoval=true)
       public final class JDIPermission extends java.security.BasicPermission {

      Github PR reference: https://github.com/openjdk/jdk/pull/24132

            kevinw Kevin Walls
            lmesnik Leonid Mesnik
            Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: