JDK-8173723 : Release Note: java.util.zip.ZipFile.getEntry() now always returns the ZipEntry instance with a '/' ended entry name for directory entry
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2017-02-01
  • Updated: 2017-10-13
  • Resolved: 2017-10-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Description
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.