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

(zipfs) Opening a directory to get input stream produces incorrect exception message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • core-libs
    • None
    • b20

      Path file = zipfs.getPath("/dir");
      Files.newInputStream(file)

      throws:
      java.nio.file.FileSystemException: /dir -> is a directory

      It should be:
      java.nio.file.FileSystemException: /d: is a directory

            lancea Lance Andersen
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: