Can I please get a review of this change which proposes to improve the 
exception reported by `jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(...)` 
methods when a `ZipException` occurs for invalid ZIP files? This addresses 
https://bugs.openjdk.org/browse/JDK-8377049.

As noted in that issue the file whose `ZipException` wasn't being propagated 
was a JMOD file. The change here will now propagate the `ZipException` for JMOD 
files similar to ZIP and JAR files. The comments in that JBS issue has 
additional discussion about this change.

A new jtreg test has been introduced to verify this change.

-------------

Commit messages:
 - 8377049: (zipfs) ZipException in ZipFileSystemProvider.newFileSystem() is 
swallowed

Changes: https://git.openjdk.org/jdk/pull/29646/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29646&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377049
  Stats: 97 lines in 2 files changed: 86 ins; 4 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/29646.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29646/head:pull/29646

PR: https://git.openjdk.org/jdk/pull/29646

Reply via email to