Please review this PR which adds test coverage for the case of reading from an input stream obtained using`ZipFile:getInputStream` after the backing `ZipFile` has been closed.
The unspecified but long-standing behavior for this unusual use case is to throw `IOException`, but this is not verified by current tests. Adding a test would help prevent regressions in this area. The test is parameterized to excercise a variation of stored/deflated entries, and a variation of read behaviors before the `ZipFile` is closed. ------------- Commit messages: - Add a test to verify exception behavior when reading from an input stream backed by a closed ZipFile. Changes: https://git.openjdk.org/jdk/pull/21142/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21142&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8340684 Stats: 128 lines in 1 file changed: 128 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/21142.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21142/head:pull/21142 PR: https://git.openjdk.org/jdk/pull/21142