java -version output for JDK8

Omair Majid omajid at redhat.com
Wed Jul 24 00:05:28 PDT 2013


Hi,

It was just brought to my attention that the output of java -version is
different on builds of jdk8 when compared to jdk7 [1]:

# java -version
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal-0)
OpenJDK 64-Bit Zero VM (build 25.0-b20-internal, interpreted mode)

# java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (fedora-2.3.10.3.fc19-ppc64)
OpenJDK 64-Bit Zero VM (build 23.7-b01, interpreted mode)

OpenJDK 7 identifies itself as "java version...." while OpenJDK 8
identifies itself as "openjdk version...". Is this intentional? Will
this be changed after Java 8 is finalized?

Thanks,
Omair

[1] https://bugzilla.redhat.com/show_bug.cgi?id=987769
-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681


More information about the jdk8-dev mailing list