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

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

    Details

    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Marking an already deprecated element as forRemoval=true is primarily a behavioral compatibility issue because of the altered set of warnings generated by javac.
    • Interface Kind:
      Java API
    • Scope:
      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

              • Assignee:
                weijun Weijun Wang
                Reporter:
                weijun Weijun Wang
                Reviewed By:
                Sean Mullan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: