diff -r c75c241c492a -r 4ce66d271065 src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RecordingInput.java --- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RecordingInput.java Fri Aug 09 19:16:55 2019 +0200 +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RecordingInput.java Tue Aug 13 03:58:29 2019 +0200 @@ -81,13 +81,13 @@ } private void initialize(File f) throws IOException { - this.filename = f.getAbsolutePath().toString(); + this.filename = fileAccess.getAbsolutePath(f); this.file = fileAccess.openRAF(f, "r"); this.position = 0; this.size = -1; this.currentBlock.reset(); - this.previousBlock.reset(); - if (f.length() < 8) { + previousBlock.reset(); + if (fileAccess.length(f) < 8) { throw new IOException("Not a valid Flight Recorder file. File length is only " + f.length() + " bytes."); } }