Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220555

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

    Details

    • Subcomponent:
      jfr
    • Introduced In Version:
      12
    • Resolved In Build:
      b13

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ysuenaga Yasumasa Suenaga
                  Reporter:
                  ysuenaga Yasumasa Suenaga
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: