JDK-8164389 : jdk.nio.zipfs.JarFileSystem does not completely traverse the versioned entries in a multi-release jar file
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-08-18
  • Updated: 2017-05-24
  • Resolved: 2016-08-22
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
9 b134Fixed
Related Reports
Relates :  
Description
JarFileSystem creates a tree representation of the files in a jar file.  During traversal of versioned sections of a multi-release jar, only the first (or last) directory of a set of sibling directories is found, and the siblings of that directory are ignored.
Comments
It's verified by running test jdk/nio/zipfs/jarfs/JFSTester.java on JDK 9 build 170.
24-05-2017

This code is incorrect: private void walk(IndexNode inode, Consumer<IndexNode> process) { if (inode == null) return; if (inode.isDir()) { walk(inode.child, process); } else { process.accept(inode); walk(inode.sibling, process); } } It can be fixed by removing the braces around the else part
18-08-2016