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

Avoid duplicate checking of trailing slash in ZipFile.getZipEntry

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: