RFR: 8340133: Add concise usage message to the java executable [v7]

Jan Lahoda jlahoda at openjdk.org
Tue Nov 12 13:11:52 UTC 2024


On Mon, 11 Nov 2024 14:25:57 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/share/classes/sun/launcher/LauncherHelper.java line 598:
>> 
>>> 596:     static void printConciseUsageMessage(boolean printToStderr) {
>>> 597:         initOutput(printToStderr);
>>> 598:         ostream.println(SharedSecrets.getJavaLangAccess().shortVersionString());
>> 
>> What is the reason for printing the short version string at the start of the short usage message?
>
> In passing, it may be better to pick "short" or "concise", right now it's a mix in the method and resource keys.

The idea behind printing the short version is to identify what tool is speaking. It can be removed, if desired.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21411#discussion_r1838074640


More information about the core-libs-dev mailing list