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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: 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

            Assignee:
            Lance Andersen
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: