RFR: 8345431: Improve jar --validate to detect duplicate or invalid entries [v15]

Lance Andersen lancea at openjdk.org
Wed May 28 14:16:03 UTC 2025


On Tue, 27 May 2025 16:23:47 GMT, Henry Jen <henryjen at openjdk.org> wrote:

>> 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 17 additional commits since the last revision:
> 
>  - Merge remote-tracking branch 'openjdk/master' into open
>  - Merge remote-tracking branch 'openjdk/master' into open
>  - Minor tweaks
>  - Assure >0 exit code and fix typos
>  - Validator to take a file, use term JAR file
>  - Mismatched order is considered invalid
>  - Adapt review feedback
>  - Address review feedback
>  - Adjust message based on review feedback
>  - Move all validation into EntryValidator, update the document
>  - ... and 7 more: https://git.openjdk.org/jdk/compare/5b580735...2690e69f

Thank you Henry on your efforts here.

I think you are in good shape overall

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

Marked as reviewed by lancea (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24430#pullrequestreview-2875285938


More information about the compiler-dev mailing list