RFR: 8318971: jar v17 should either exit on error immediately or create archive as jar v1.8 did

Ryan Wallace duke at openjdk.org
Mon Nov 6 09:56:37 UTC 2023


Hi all,

Please review this fix for jar tool not producing archive if there is a missing file supplied. Fix is to throw an exception and exit processing when a missing file is supplied. Current behaviour will recognise missing file as an error but continue processing and not produce the archive. Updated ClassPath test to verify jar is not created.

Thanks,
Ryan.

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

Commit messages:
 - 8318971: jar v17 should either exit on error immediately or create archive as jar v1.8 did
 - 8318971: jar v17 should either exit on error immediately or create archive as jar v1.8 did

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

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


More information about the compiler-dev mailing list