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

MimetypesFileTypeMap("MissingFile") causes System.exit(1)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • generic
    • solaris_2.6
    • Verified


        There's no documentation of the behavior when the constructor MimetypesFileTypeMap("MissingFile")
        is used. The underlying implementation in MimeTypeFile will trap the FileNotFound exception,
        dump errors to the console and execute System.exit(1).

        The use of exit precludes handling the problem by trapping exceptions or verifying the resultant state in the client code

              duke J. Duke
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: