RFR: 7022325: TEST_BUG: test/java/util/zip/ZipFile/ReadLongZipFileName.java leaks files if it fails

Jaikiran Pai jpai at openjdk.org
Fri May 31 01:02:41 UTC 2024


Can I please get a review of this test-only change which updates a couple of places in the test to use `try-with-resource`?

As noted in https://bugs.openjdk.org/browse/JDK-7022325 this change should prevent leaking of resources in case there's any failure in the test. The test continues to pass with this change.

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

Commit messages:
 - 7022325: TEST_BUG: test/java/util/zip/ZipFile/ReadLongZipFileName.java leaks files if it fails

Changes: https://git.openjdk.org/jdk/pull/19492/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19492&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-7022325
  Stats: 28 lines in 1 file changed: 2 ins; 4 del; 22 mod
  Patch: https://git.openjdk.org/jdk/pull/19492.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19492/head:pull/19492

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


More information about the core-libs-dev mailing list