RFR: 8072379: Implement jdk.Version and jdk.OracleVersion
iris.clark at oracle.com
Wed Nov 25 01:54:10 UTC 2015
Please review the new classes jdk.Version and jdk.OracleVersion. These are
simple Java APIs to parse, validate, and compare version numbers.
8072379: Implement jdk.Version and jdk.OracleVersion
The .java files are predominantly javadoc. The code is relatively
jdk.Version is the representation of the JDK version string as described in
JEP 223 (, 8061493). The javadoc is largely taken from the description
section in the JEP. The API is described in the "API" section.
jdk.OracleVersion extends jdk.Version and is the representation of the Oracle
JDK version string. Its only purpose is to interpret the fourth element of
the version number as a patch release.
There are some minor discrepancies between the implementation and the JEP.
The JEP will need to be updated. The most notable is the name of the package
("jdk" vs. the original "jdk.util"). The rename was recommended by Mark.
More information about the core-libs-dev