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

Deprecate jdk.jfr.FlighRecorderPermission class for removal

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 25
    • hotspot
    • None
    • jfr
    • behavioral
    • minimal
    • Java API
    • JDK

      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 {

            egahlin Erik Gahlin
            mullan Sean Mullan
            Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: