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

Avoid duplicate checking of trailing slash in ZipFile.getZipEntry

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs

      ZipFile.getZipEntry currently includes logic to check if a CEN entry looked up as "name" returned a match for "name/" with a trailing slash. Similar logic is already done in the ZipFile.Source.getEntryPos method, but this method only returns the CEN position, not the resolved directory name.

      By changing ZipFile.Source.getEntryPos to return both the CEN position and the resolved name, we can remove this logic from ZipFile.getZipEntry.

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

              Created:
              Updated:
              Resolved: