Why is java -version implemented in Java?
Christian Stein
sormuras at gmail.com
Sun Nov 22 06:07:45 UTC 2020
On Sun, Nov 22, 2020 at 6:59 AM Thomas Stüfe <thomas.stuefe at gmail.com>
wrote:
> [...]
> Pity. I guess we could run JVM initialization and still cut out the actual
> invocation of VersionProps.java and just print all those infos from native
> code within the hotspot. But I'm not sure how much this would actually
> save.
>
What about introducing new java launcher options (named "--version-short",
"--version-long", ..., "--print-version-in-jep223-[short|long]-format")
that don't need an initialized VM?
More information about the jdk-dev
mailing list