diff -r baf88aa4f5db -r 0ef79bd7fb5c src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java --- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Tue Sep 17 19:37:49 2019 +0200 +++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Wed Sep 18 03:45:46 2019 +0200 @@ -43,6 +43,9 @@ /** * Represents a stream of events. *
+ * The EventStream interface is not to be implemented and future version may + * prevent this completely. + *
* A stream is a sequence of events and the way to interact with a stream is to * register actions. *
@@ -174,7 +177,7 @@ * @throws SecurityException if a security manager exists and its * {@code checkRead} method denies read access to the file */ - public static EventStream openFile(Path file) throws IOException { + static EventStream openFile(Path file) throws IOException { return new EventFileStream(AccessController.getContext(), file); }