Verona spec: java [-version|-showversion|-fullversion]

Iris Clark iris.clark at oracle.com
Wed Aug 5 18:12:53 UTC 2015


Hi.

The JEP does not describe the output for the launcher's version-related output ("java [-version|-showversion|-fullversion]").    The format will not change.  The implementation will continue to depend on various system properties as it has historically.

In the open JEP, we'll add a "Launcher" section to identify the format and system properties.

Complete diffs are appended to this message.

Please let me know if there are any concerns.

Thanks,
Iris

343a344,369
> ### Launcher ###
>
> In the OpenJDK `java` launcher implementation, system properties are used when

> reporting version information, e.g. `java -version`, `java -fullversion`, and
> `java -showversion`.
>
> The launcher output continues to depend on the system properties as follows:
>
>     $ java -version
>     openjdk version \"${java.version}\"
>     ${java.runtime.name} (build ${java.runtime.version})
>     ${java.vm.name} (build ${java.vm.version}, ${java_vm_info})
>
>     $ java -showversion < ... >
>     openjdk version \"${java.version}\"
>     ${java.runtime.name} (build ${java.runtime.version})
>     ${java.vm.name} (build ${java.vm.version}, ${java_vm_info})
>     [ ... ]
>
>     $ java -fullversion
>     openjdk full version \"${java.runtime.version}\"
>
> Implementation details may be found in the [source][VerTemp].
>
> [VerTemp]: http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/java.base/share/classes/sun/misc/Version.java.template
>


More information about the verona-dev mailing list