RFR: 8345431: Detect duplicate entries in jar files with jar --validate
Lance Andersen
lancea at openjdk.org
Fri Apr 4 16:16:48 UTC 2025
On Fri, 4 Apr 2025 16:06:07 GMT, Henry Jen <henryjen at openjdk.org> wrote:
>> Is the ordering required by ZIP or Jar format? We can certainly do that if that's under spec and not an implementation detail.
>
> As we checking entry uniqueness and the size match, and all LOC entries should be in CEN, that would means all CEN entries in LOC.
> But if we would like to be specific about the inconsistency, then we will have to do a little more work.
Yes, in a perfect world there will be a 1 to 1 match but either way we should sanity check it in case something happened
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24430#discussion_r2029097428
More information about the compiler-dev
mailing list