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

Mark deprecated javax.security.auth.Policy API with forRemoval=true

    XMLWordPrintable

Details

    • behavioral
    • minimal
    • Marking an already deprecated element as forRemoval=true is primarily a behavioral compatibility issue because of the altered set of warnings generated by javac.
    • Java API
    • SE

    Description

      Summary

      Mark deprecated javax.security.auth.Policy API with forRemoval=true

      Problem

      The javax.security.auth.Policy class has been deprecated since 1.4 and superseded/replaced by java.security.Policy. It is no longer necessary to retain this class and it should be removed in a future release.

      Solution

      add forRemoval=true

      Specification

      diff --git a/src/java.base/share/classes/javax/security/auth/Policy.java b/src/java.base/share/classes/javax/security/auth/Policy.java
      --- a/src/java.base/share/classes/javax/security/auth/Policy.java
      +++ b/src/java.base/share/classes/javax/security/auth/Policy.java
      @@ -152,11 +152,12 @@
        *
        * These two APIs provide callers the means to query the
        * Policy for Principal-based Permission entries.
      + * This class is subject to removal in a future version of Java SE.
        *
        * @since 1.4
        * @see java.security.Security security properties
        */
      -@Deprecated(since="1.4")
      +@Deprecated(since="1.4", forRemoval=true)
       public abstract class Policy {
      
           private static Policy policy;

      Attachments

        Issue Links

          Activity

            People

              weijun Weijun Wang
              weijun Weijun Wang
              Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: