JDK-6625846 : Export system property java.version via jvmstat
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 6u4
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2007-11-05
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u14Fixed 7Fixed hs14Fixed
jvmstat currently expoorts java.vm.version, but with introducion of HotSpot Express, java.version and java.vm.version are different. It will be very useful to export java.version so that Java SE version can be detected via jvmstat.

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/f3a650d8df24

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-svc/hotspot/rev/f3a650d8df24

SUGGESTED FIX The webrev is available here: <http://beetle.czech.sun.com/~th125165/webrev_6625846/>

SUGGESTED FIX java.version can be added to property_counters_ss in statSampler.cpp see attached diff.