RFR: 8266835: Add a --validate option to the jar tool [v3]

Alan Bateman alanb at openjdk.java.net
Wed Jun 9 13:43:41 UTC 2021


On Wed, 9 Jun 2021 13:37:02 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties line 241:
>> 
>>> 239: \      --validate             Validate a jar. This process will validate that the API\n\
>>> 240: \                             exported by a multi-release jar is consistent across all\n\
>>> 241: \                             different release versions.
>> 
>> Thanks for the update. I see that that "jar archive" is used in some of the existing options so maybe tweak it to:
>> 
>> Validate the contents of the jar archive.
>> This option will validate that the API exported by ...
>
> Done.
> 
> FWIW, I also thought about using "jar file", but the jar tool can also take input from stdin, so that didn't seem appropriate.

Yeah, there are inconsistencies. In other contexts we say "JAR file". In the usage output it has historically used "jar archive".

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

PR: https://git.openjdk.java.net/jdk/pull/3971


More information about the core-libs-dev mailing list