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

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

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 10
    • security-libs
    • None
    • behavioral
    • low
    • 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.
    • Java API
    • SE

      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)

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

              Created:
              Updated:
              Resolved: