-version output differs from --version output

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Tue Jul 2 09:26:06 UTC 2019


Hi,

The two output differ in the string 'version' and quoting of the version:

output-jdk/images/jdk/bin/java -version
openjdk version "14.0.0.1-internal" 2019-07-01
OpenJDK Runtime Environment (build 14.0.0.1-internal+0-adhoc.openjdk.jdk)
OpenJDK 64-Bit Server VM (build 14.0.0.1-internal+0-adhoc.openjdk.jdk, mixed mode, sharing)

output-jdk/images/jdk/bin/java --version
openjdk 14.0.0.1-internal 2019-07-01
OpenJDK Runtime Environment (build 14.0.0.1-internal+0-adhoc.openjdk.jdk)
OpenJDK 64-Bit Server VM (build 14.0.0.1-internal+0-adhoc.openjdk.jdk, mixed mode, sharing)

is this intended, or is this a bug?
It is actually coded like this in VersionProps.java.template print().
http://hg.openjdk.java.net/jdk/jdk/file/8a153a932d0f/src/java.base/share/classes/java/lang/VersionProps.java.template

Best regards,
  Goetz.




More information about the jdk-dev mailing list