--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java Fri Aug 09 19:16:55 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java Tue Aug 13 03:58:29 2019 +0200
@@ -40,8 +40,8 @@
import jdk.jfr.Recording;
import jdk.jfr.internal.PlatformRecording;
import jdk.jfr.internal.PrivateAccess;
+import jdk.jfr.internal.SecuritySupport;
import jdk.jfr.internal.Utils;
-import jdk.jfr.internal.consumer.FileAccess;
/**
* A recording stream produces events from the current JVM (Java Virtual
@@ -100,7 +100,7 @@
this.recording = new Recording();
this.recording.setFlushInterval(Duration.ofMillis(1000));
try {
- this.stream = new EventDirectoryStream(acc, null, FileAccess.PRIVILIGED, true);
+ this.stream = new EventDirectoryStream(acc, null, SecuritySupport.PRIVILIGED, true);
} catch (IOException ioe) {
throw new IllegalStateException(ioe.getMessage());
}