JFR tool shows potentially misleading message when it cannot access a file

XMLWordPrintable

    • jfr
    • 12
    • b13

        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.

        [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)

              Assignee:
              Yasumasa Suenaga
              Reporter:
              Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: