branch | JEP-349-branch |
changeset 57985 | be121cbf3284 |
parent 57971 | aa7b1ea52413 |
child 58020 | f082177c5023 |
--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Mon Sep 02 21:03:40 2019 +0200 +++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Mon Sep 02 21:08:41 2019 +0200 @@ -103,7 +103,7 @@ * {@code checkRead} method denies read access to the file */ public static EventStream openFile(Path file) throws IOException { - return new EventFileStream(file, null, null); + return new EventFileStream(AccessController.getContext(), file); } /**