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

Add test case for ZipFile opening a ZIP with no entries

XMLWordPrintable

        A ZIP file with no entries is unusual, but valid. It can be the result of filtering a ZIP file with no matching entries, etc.

        We currently have no test case for this, which can be verified by adding the following code in getEntryPos:

        if (total == 0) {
            throw new AssertionError();
        }

              eirbjo Eirik Bjørsnøs
              eirbjo Eirik Bjørsnøs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: