RFR: 8345431: Improve jar --validate to detect duplicate or invalid entries [v11]
Jaikiran Pai
jpai at openjdk.org
Wed May 21 17:31:55 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/classes/sun/tools/jar/Validator.java line 119:
> 117: * element is not equal to "." or ".."
> 118: *
> 119: * @param entryName CEN/LOC header file name field entry
Nit - `@param entryName ZIP entry name`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24430#discussion_r2100821550
More information about the core-libs-dev
mailing list