Hi. Please review the new classes jdk.Version and jdk.OracleVersion. These are simple Java APIs to parse, validate, and compare version numbers.
Bug 8072379: Implement jdk.Version and jdk.OracleVersion https://bugs.openjdk.java.net/browse/JDK-8072379 Webrev http://cr.openjdk.java.net/~iris/verona/8072379/webrev.1/ JavaDoc http://cr.openjdk.java.net/~iris/verona/8072379/doc.1/jdk/Version.html http://cr.openjdk.java.net/~iris/verona/8072379/doc.1/jdk/OracleVersion.html The .java files are predominantly javadoc. The code is relatively straight-forward. jdk.Version is the representation of the JDK version string as described in JEP 223 ([0], 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. Thanks, iris [0] http://openjdk.java.net/jeps/223