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

Incorrect Exception message from java.awt.Desktop.open()

    XMLWordPrintable

Details

    • b52
    • windows_7

    Backports

      Description

        If Desktop.open() fails because the target file has no associated, an
        IOException is thrown with the following error message:
          "A device attached to the system is not functioning."

        This is not the correct error message. It should be:
          "There is no application associated with the given file name extension."

        Prior to 7u40, a different (but still incorrect) Exception message was shown:
          "Access is denied."

        Attachments

          Issue Links

            Activity

              People

                dmarkov Dmitry Markov
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: