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

Remove deprecated java.security.acl APIs

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 14
    • security-libs
    • None
    • source, binary
    • low
    • The two known external projects that had dependencies on these APIs have been fixed and the dependencies removed. See the main bug for more information and links.
    • Java API
    • SE

      Summary

      Remove the deprecated java.security.acl APIs.

      Problem

      These APIs were initially deprecated in Java SE 9, marked for removal in Java SE 10 and have had a warning in the java.security.acl package summary since Java SE 1.2 indicating that they have been superseded by other APIs. They are not used within the JDK and have no value going forward.

      Solution

      Remove the deprecated java.security.acl APIs, which were marked for removal in Java SE 10. This includes the following classes in that package: Acl, AclEntry, AclNotFoundException, Group, LastOwnerException, NotOwnerException, Owner, and Permission. Also, remove the export of the java.security.acl package from the module descriptor of the java.base module.

      Specification

      $ hg tstatus -r
      [snip]:
      R src/java.base/share/classes/java/security/acl/Acl.java
      R src/java.base/share/classes/java/security/acl/AclEntry.java
      R src/java.base/share/classes/java/security/acl/AclNotFoundException.java
      R src/java.base/share/classes/java/security/acl/Group.java
      R src/java.base/share/classes/java/security/acl/LastOwnerException.java
      R src/java.base/share/classes/java/security/acl/NotOwnerException.java
      R src/java.base/share/classes/java/security/acl/Owner.java
      R src/java.base/share/classes/java/security/acl/Permission.java
      R src/java.base/share/classes/java/security/acl/package-info.java
      
      $ hg diff src/java.base/share/classes/module-info.java
      diff -r 650335128b9d src/java.base/share/classes/module-info.java
      --- a/src/java.base/share/classes/module-info.java      Tue Jul 23 11:36:05 2019 -0700
      +++ b/src/java.base/share/classes/module-info.java      Thu Jul 25 11:59:08 2019 -0400
      @@ -96,7 +96,6 @@
           exports java.nio.file.attribute;
           exports java.nio.file.spi;
           exports java.security;
      -    exports java.security.acl;
           exports java.security.cert;
           exports java.security.interfaces;
           exports java.security.spec;

            mullan Sean Mullan
            mullan Sean Mullan
            Alan Bateman, Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: