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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b52
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: