java -version output for JDK8
Andrew Hughes
gnu.andrew at redhat.com
Thu Jul 25 12:01:48 PDT 2013
----- Original Message -----
> On 24/07/2013 5:05 PM, Omair Majid wrote:
> > 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?
>
> It comes from common/autoconf/version-numbers which has:
>
> LAUNCHER_NAME=openjdk
>
> which seems to be a mistake to me as obviously the launcher name is not
> openjdk.
>
> ???
>
> David
> -----
>
> > Thanks,
> > Omair
> >
> > [1] https://bugzilla.redhat.com/show_bug.cgi?id=987769
> >
>
This logic has always been there. It just never seems to have actually
worked in the old build system, but does in the new one.
>From http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/tip/make/common/shared/Defs.gmk:
# Default names
ifdef OPENJDK
LAUNCHER_NAME = openjdk
PRODUCT_NAME = OpenJDK
PRODUCT_SUFFIX = Runtime Environment
JDK_RC_PLATFORM_NAME = Platform
COMPANY_NAME = N/A
else
LAUNCHER_NAME = java
PRODUCT_NAME = Java(TM)
PRODUCT_SUFFIX = SE Runtime Environment
JDK_RC_PLATFORM_NAME = Platform SE
COMPANY_NAME = Oracle Corporation
endif
I spotted that someone seemed to have brought Frankenstein to life back in March and
planned to fix it when I got time:
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1348
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the jdk8-dev
mailing list