JDK-8136651 : Update jdk/test/sun/misc/Version/Version.java to use jdk.Version
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 9-repo-verona
  • Priority: P3
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2015-09-16
  • Updated: 2016-03-16
  • Resolved: 2016-03-16
Related Reports
Blocks :  
Description
As described in JEP-223 (JDK-8061493) a Java API to parse, validate, and compare version strings is needed:
"All code in the JDK that inspects and compares JDK version strings will be updated to use these APIs. Developers whose libraries or applications inspect and compare JDK version strings will be encouraged to use these APIs."
Comments
test/sun/misc/Version/Version.java was removed in JDK-8150162 which relocated sun.misc.Version to the package-private class java.lang.VersionProps. The old APIs Version.jdk*Version() and Version.jdm*Version() were removed in that transition.
16-03-2016

The following test should be modified to use this API once available: jdk/test/sun/misc/Version/Version.java
16-09-2015