RFR: 8340133: Add concise usage message to the java executable [v7]
Jaikiran Pai
jpai at openjdk.org
Tue Nov 19 09:08:58 UTC 2024
On Tue, 12 Nov 2024 15:30:23 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> `shortVersionString` changed to `conciseVersionString` in:
>> https://github.com/openjdk/jdk/pull/21411/commits/e9e9ad4bdd0a11244cb1ef84fdeea036e94718c7
>
>> The idea behind printing the short version is to identify what tool is speaking. It can be removed, if desired.
>
> It may be helpful to some but may be confusing in other cases, esp. because it may include "LTS" in the output. So I think maybe drop this for now, or get wider input on print the version string as the first line, it can always be added later if needed.
I hadn't paid attention to the version string in the output for `java` (without args). I agree with Alan that it might be better to remove that from the output so that it matches with `java -help` which doesn't print it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21411#discussion_r1847941376
More information about the core-libs-dev
mailing list