RFR: 8345431: Improve jar --validate to detect duplicate or invalid entries [v11]
Jaikiran Pai
jpai at openjdk.org
Wed May 21 16:48:56 UTC 2025
On Wed, 21 May 2025 15:49:29 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 incrementally with one additional commit since the last revision:
>
> Mismatched order is considered invalid
src/jdk.jartool/share/man/jar.md line 235:
> 233: versions.
> 234:
> 235: The jar tool returns a status code of 0 if there were no integrity issues encountered, otherwise
Nit - we should call it exit code instead of status code, both for 0 and non-zero exit codes.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24430#discussion_r2100748899
More information about the core-libs-dev
mailing list