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

Mark the deprecated java.security.acl APIs with forRemoval=true

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 10
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      There are still some projects that use these APIs, in particular GlassFish and WildFly, but they should be fairly easy to replace or remove, and the compiler warning will help give advance notice.
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      Mark the deprecated java.security.acl APIs with forRemoval=true.

      Problem

      The APIs in java.security.acl were deprecated in JDK 9 but have had the following warning in the package description for a very long time:

      "The classes and interfaces in this package have been superseded by classes in the java.security package. See that package and, for example, java.security.Permission for details."

      Since there have been suitable replacements since JDK 1.2, there is no reason to retain this package and it should be removed in a future release.

      Solution

      Mark the deprecated java.security.acl APIs with forRemoval=true.

      Specification

      Make the following change to the java.security.{Acl, AclEntry, AclNotFoundException, Group, LastOwnerException, NotOwnerException, Owner, Permission} classes:

      -@Deprecated(since="9")
      +@Deprecated(since="9", forRemoval=true)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: