Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6233323 ZipEntry.isDirectory() may return false incorrectly
  3. JDK-8173723

Release Note: java.util.zip.ZipFile.getEntry() now always returns the ZipEntry instance with a '/' ended entry name for directory entry

XMLWordPrintable

      java.util.zip.ZipEntry API doc specifies *"A directory entry is defined to be one whose name ends with a '/'"*. However, in previous JDK releases java.util.zip.ZipFile.getEntry(String *entryName*) may return a ZipEntry instance with an entry name that does not end with '/' for an existing zip directory entry when the passed in argument *entryName* does not end with a *'/'* and there is a matching zip directory entry with name *entryName + '/'* in the zip file. With JDK 9 the name of the ZipEntry instance returned from java.util.zip.ZipFile.getEntry() always ends with *'/'* for any zip directory entry.

            sherman Xueming Shen
            rcalnan Roger Calnan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: