RFR: Remove @Deprecated annotation from java.security.acl and javax.security.cert packages

Sean Mullan sean.mullan at oracle.com
Wed Dec 9 21:43:23 UTC 2015


Bug: https://bugs.openjdk.java.net/browse/JDK-8144784

The @Deprecated annotation on a package is a no-op in terms of affecting 
the set of deprecation warnings the compiler produces. This has been 
clarified in the JLS and specification for java.lang.Deprecated in 9.

Thus, we should remove the @Deprecated annotations from the packages 
since they are not providing any value.

No webrev, since the diffs are trivial:

diff --git 
a/src/java.base/share/classes/java/security/acl/package-info.java 
b/src/java.base/share/classes/java/security/acl/package-info.java
--- a/src/java.base/share/classes/java/security/acl/package-info.java
+++ b/src/java.base/share/classes/java/security/acl/package-info.java
@@ -32,4 +32,3 @@
   * @since 1.1
   */
- at Deprecated
  package java.security.acl;
diff --git 
a/src/java.base/share/classes/javax/security/cert/package-info.java 
b/src/java.base/share/classes/javax/security/cert/package-info.java
--- a/src/java.base/share/classes/javax/security/cert/package-info.java
+++ b/src/java.base/share/classes/javax/security/cert/package-info.java
@@ -38,4 +38,3 @@
   * @since 1.4
   */
- at Deprecated
  package javax.security.cert;

Thanks,
Sean


More information about the security-dev mailing list