diff -r 83e4343a6984 -r 216bf2e3b542 src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java --- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Thu Jun 27 10:19:32 2019 +0200 +++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java Thu Jun 27 10:41:01 2019 +0200 @@ -27,6 +27,7 @@ import java.io.IOException; import java.nio.file.Path; +import java.security.AccessController; import java.time.Duration; import java.time.Instant; import java.util.function.Consumer; @@ -44,9 +45,7 @@ * @return an event stream, not {@code null} */ public static EventStream openRepository(Path directory) throws IOException { - throw new UnsupportedOperationException("Not yet implemented"); - // AccessControlContext acc = AccessController.getContext(); - // return new EventDirectoryStream(acc); + return new EventDirectoryStream(AccessController.getContext(), directory); } /**