[jdk11u-dev] RFR: 8339810: Clean up the code in sun.tools.jar.Main to properly close resources and use ZipFile during extract

Martin Balao mbalao at openjdk.org
Sat Mar 22 05:23:58 UTC 2025


Hi,

I'd like to have a review for the 11u backport of [8339810](https://bugs.openjdk.org/browse/JDK-8339810).

Changes to the 17u patch:

 * src/jdk.jartool/share/classes/sun/tools/jar/Main.java
   * Copyright date. Manually fixed.
   * 11u does not have 8276766 so the context is different and changes do not apply cleanly.

Testing:

 * No regressions found in jdk/sun/security/tools/jarsigner.

Thanks,
Martin.-

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

Commit messages:
 - Backport 8fce5275fc94ebc404a6a37f5ea0407140de63c1

Changes: https://git.openjdk.org/jdk11u-dev/pull/3016/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3016&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339810
  Stats: 181 lines in 1 file changed: 32 ins; 53 del; 96 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3016.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3016/head:pull/3016

PR: https://git.openjdk.org/jdk11u-dev/pull/3016


More information about the jdk-updates-dev mailing list