RFR: 8164389: jdk.nio.zipfs.JarFileSystem does not completely traverse the versioned entries in a multi-release jar file
Paul Sandoz
paul.sandoz at oracle.com
Fri Aug 19 00:01:04 UTC 2016
> On 18 Aug 2016, at 16:36, Steve Drach <steve.drach at oracle.com> wrote:
>
> Hi,
>
> Please review this rather simple fix to JarFileSystem.
>
> issue: https://bugs.openjdk.java.net/browse/JDK-8164389 <https://bugs.openjdk.java.net/browse/JDK-8164389>
> webrev: http://cr.openjdk.java.net/~sdrach/8164389/webrev/index.html <http://cr.openjdk.java.net/~sdrach/8164389/webrev/index.html>
>
JarFileSystem
—
162 private void walk(IndexNode inode, Consumer<IndexNode> process) {
163 if (inode == null) return;
164 if (inode.isDir())
165 walk(inode.child, process);
166 else
167 process.accept(inode);
168 walk(inode.sibling, process);
169 }
I would recommend using braces, even for single statement blocks.
JFSTester
—
You might wanna create a temporary jar file if possible, just in case the test somehow fails to clean things up.
80 public void TestWalk() throws IOException {
Lower case for first letter.
Paul.
More information about the core-libs-dev
mailing list