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

JFR: Remove AccessControlContext from FlightRecorder::addListener specification

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 24, 25
    • hotspot
    • None
    • jfr
    • behavioral
    • minimal
    • JEP 486: Permanently Disable the Security Manager makes the FlightRecorder::addListener method act as if the AccessControlContext is not captured, This CSR will only make it clear in the specification
    • Java API
    • JDK

      Summary

      Remove AccessControlContext from the specification of the method jdk.jfr.FlightRecorder::addListener(FlightRecorderListener).

      Problem

      With "JEP 486: Permanently Disable the Security Manager" the AccessControlContext is no longer captured when adding a FlightRecorderListener.

      Solution

      Update the specification to not mention the AccessControlContext as it is no longer captured.

      Specification

         /**
      -   * Adds a recorder listener and captures the {@code AccessControlContext} to
      -   * use when invoking the listener.
      +   * Adds a recorder listener.
          * <p>
          * If Flight Recorder is already initialized when the listener is added, then the method
          * {@link FlightRecorderListener#recorderInitialized(FlightRecorder)} method is
          * invoked before returning from this method.
          *
          * @param changeListener the listener to add, not {@code null}
          */
         public static void addListener(FlightRecorderListener changeListener) {

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: