Summary
Deprecate the class jdk.jfr.FlightRecorderPermission for removal.
Problem
JEP 486 has been integrated into JDK 24, and the Security Manager is now permanently disabled. As a result, the jdk.jfr.FlightRecorderPermission class is no longer needed and can be deprecated for removal.
Solution
Terminally deprecate FlightRecorderPermission class by annotating it with @Deprecated(since="25", forRemoval=true)
. Change the @apiNote
in the classes to a @deprecated
annotation.
Specification
/**
* Permission for controlling access to Flight Recorder.
*
- * @apiNote
+ * @deprecated
* This permission cannot be used for controlling access to resources
* as the Security Manager is no longer supported.
*
@@ -53,118 +44,8 @@
*
*/
@SuppressWarnings("serial")
+@Deprecated(since="25", forRemoval=true)
public final class FlightRecorderPermission extends java.security.BasicPermission {
- csr of
-
JDK-8353856 Deprecate FlighRecorderPermission class for removal
-
- Resolved
-