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) {
- csr of
-
JDK-8343510 JFR: Remove AccessControlContext from FlightRecorder::addListener specification
- Resolved