Mantis - Resin
Viewing Issue Advanced Details
2633 trivial always 04-28-08 13:50 04-28-08 14:27
closed 3.1.6  
none 3.1.6  
0002633: Startup-Logging contains confusing Java Version since JDK 6u4
Up to Sun Java 1.6.0_03, the version of the Virtual Machine was in accordance with the shipped Runtime Version. Such as:

$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

With Sun Java 1.6.0_04 this has been changed. See also [^]

Changes in 1.6.0_04
The full internal version number for this update release is 1.6.0_04-b12 (where "b" means "build"). The external version number is 6u4. Included in JDK 6u4 is version 10.0 of the Java HotSpot Virtual Machine.

For example the most recent 1.6 JDK returns the following information when started with -version argument:

$ java -version
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b14)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)

The Startup-Logging of Resin includes the Output of "Java " + System.getProperty("java.vm.version") for example

[22:12:10.687] {main}
[22:12:10.828] {main} Windows XP 5.1 x86
[22:12:10.828] {main} Java 11.0-b11, 32, mixed mode, sharing, Cp1252, de, Sun Microsystems Inc.
[22:12:10.828] {main} stbu
[22:12:10.828] {main} resin.home = C:\Downloads\resin-pro-3.1.s080426
[22:12:10.828] {main} resin.root = C:\Downloads\resin-pro-3.1.s080426
[22:12:10.828] {main} resin.conf = /C:/Downloads/resin-pro-3.1.s080426/conf/resin.conf
[22:12:10.828] {main}

which is a little bit confusing since the above mentioned change. I think it would better to distinguish between the Java version (java.version), the Java Runtime ( + java.runtime.version) and the Virtual Machine ( + java.vm.version).

There are no notes attached to this issue.