RFR: 8220555: JFR tool shows incorrect message when it cannot access the file
Yasumasa Suenaga
yasuenag at gmail.com
Wed Mar 13 07:46:56 UTC 2019
Hi all,
Please review this change:
JBS: https://bugs.openjdk.java.net/browse/JDK-8220555
webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8220555/webrev.00/
JFR tool shows error message as "could not find file" when it receives
FileNotFoundException from ctor of RandomAccessFile.
According to Javadoc of RandomAccessFile [1], FileNotFoundException
will be thrown when we do not be granted to access the file.
Therefore, the error message misleads the user.
All tests on submit repo seems to be succeeded
(mach5-one-ysuenaga-JDK-8220555-20190313-0612-1175783).
Also it passed :jdk_jfr jtreg tests on my Linux box.
Thanks,
Yasumasa
[1] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/RandomAccessFile.html#%3Cinit%3E(java.io.File,java.lang.String)
More information about the hotspot-jfr-dev
mailing list