RFR: 8282036: [Test]: Update java/util/zip/ZipFile/DeleteTempJar.java to stop HttpServer cleanly in case of exceptions
Thejasvi Voniadka
tvoniadka at openjdk.org
Mon Jun 27 04:59:18 UTC 2022
This is a simple change to add some protective code to java/util/zip/ZipFile/DeleteTempJar.java so that the clean-up is more complete in the event of encountering an any exceptions while running. In the present state, the server.stop() does not get executed in case of encountering a failure. As a result, the test may get hung until a timeout. This fix should address the scenario.
The test passes on all supported platforms post fix.
-------------
Commit messages:
- 8282036: [Test]: Update java/util/zip/ZipFile/DeleteTempJar.java to stop HttpServer cleanly in case of exceptions
Changes: https://git.openjdk.org/jdk/pull/9293/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9293&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8282036
Stats: 13 lines in 1 file changed: 6 ins; 1 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/9293.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9293/head:pull/9293
PR: https://git.openjdk.org/jdk/pull/9293
More information about the core-libs-dev
mailing list