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

Lance Andersen lancea at openjdk.org
Fri Apr 4 16:16:49 UTC 2025


On Fri, 4 Apr 2025 16:01:40 GMT, Henry Jen <henryjen at openjdk.org> wrote:

>> src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties line 147:
>> 
>>> 145:         in incompatible public interfaces
>>> 146: warn.validator.duplicate.entry=\
>>> 147:         Warning: More than one copy of {0} is detected
>> 
>> How do we know if the duplicate entry is in the CEN or LOC?
>
> I can add more specific message if that's preferred. I am not expecting user/developer to know about file format details.

It is useful to know where the error is for future analysis

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24430#discussion_r2029098473


More information about the compiler-dev mailing list