JDK-8072379 : CoreLibs: Implement jdk.Version
  • Type: Sub-task
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-02-03
  • Updated: 2017-05-17
  • Resolved: 2016-02-03
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 9
9 b105Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
A simple JDK-specific Java API to parse, validate, and compare version strings.  A rough estimate of this API may be found in the JEP 223 description (JDK-8061493).
Comments
jdk.Version isn't a complete replacement for sun/misc/Version.java.template The former only provides a means to interpret version strings. Code which was using Version.java.template to access parts of the version string may be modified to use the new jdk.Version. According to my cursory search, there are 7 references to "sun.misc.Version" in our source: hotspot/src/share/vm/prims/jvm.h hotspot/src/share/vm/runtime/thread.cpp jdk/src/java.base/share/classes/sun/misc/VM.java jdk/src/java.base/share/native/include/jvm.h jdk/src/java.base/share/classes/java/lang/System.java jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java jdk/test/sun/misc/Version/Version.java I suspect that the reference in module jdk.jconsole is the interesting candidate for replacement. This change is not included in the changeset for this issue. Additional functionality provided by Version.java.template will need to be moved.
14-12-2015

Am I correct in thinking that sun/misc/Version.java.template can be removed once this change gets in? Otherwise, its functionality should moved to a more suitable internal package. I am raising this query in relation to JDK-8132928, JEP 260.
14-12-2015