8160457: VersionProps.versionNumbers() is broken
Reviewed-by: redestad, mchung, iris
--- a/jdk/src/java.base/share/classes/java/lang/VersionProps.java.template Fri Jun 10 13:57:51 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/VersionProps.java.template Wed Jun 29 10:07:15 2016 +0200
@@ -74,7 +74,7 @@
while (index > 0) {
versionNumbers.add(
Integer.parseInt(VERSION_NUMBER, prevIndex, index, 10));
- prevIndex = index;
+ prevIndex = index + 1; // Skip the period
index = VERSION_NUMBER.indexOf('.', prevIndex);
}
versionNumbers.add(Integer.parseInt(VERSION_NUMBER,