RFR: 8345431: Detect duplicate entries in jar files with jar --validate [v2]

Henry Jen henryjen at openjdk.org
Mon Apr 28 23:40:11 UTC 2025


> This PR check the jar file to ensure entries are consistent from the central directory and local file header. Also check there is no duplicate entry names that could override the desired content by accident.

Henry Jen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge remote-tracking branch 'openjdk/master' into open
 - Enhance validation output to be more specific
 - 8345431: Detect duplicate entries in jar files with jar --validate

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24430/files
  - new: https://git.openjdk.org/jdk/pull/24430/files/cae7f6a2..384905bc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24430&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24430&range=00-01

  Stats: 283063 lines in 2394 files changed: 79465 ins; 194897 del; 8701 mod
  Patch: https://git.openjdk.org/jdk/pull/24430.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24430/head:pull/24430

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


More information about the compiler-dev mailing list