Details
-
CSR
-
Resolution: Approved
-
P3
-
behavioral
-
minimal
-
Marking an already deprecated element as forRemoval=true is primarily a behavioral compatibility issue because of the altered set of warnings generated by javac.
-
Java API
-
SE
Description
Summary
Mark deprecated javax.security.auth.Policy API with forRemoval=true
Problem
The javax.security.auth.Policy
class has been deprecated since 1.4 and superseded/replaced by java.security.Policy
. It is no longer necessary to retain this class and it should be removed in a future release.
Solution
add forRemoval=true
Specification
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,11 +152,12 @@
*
* 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.
*
* @since 1.4
* @see java.security.Security security properties
*/
-@Deprecated(since="1.4")
+@Deprecated(since="1.4", forRemoval=true)
public abstract class Policy {
private static Policy policy;
Attachments
Issue Links
- csr of
-
JDK-8159535 Mark deprecated javax.security.auth.Policy API with forRemoval=true
- Resolved