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

Wang Weijun weijun.wang at oracle.com
Wed Jun 15 00:42:44 UTC 2016


We intend to remove this API in jdk10. Please take a review on the jdk9/dev patch below:

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,10 +152,11 @@
  *
  * 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.
  *
  * @see java.security.Security security properties
  */
- at Deprecated
+ at Deprecated(since="1.4", forRemoval=true)
 public abstract class Policy {

     private static Policy policy;

Thanks
Max



More information about the security-dev mailing list