-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b118
-
generic
-
generic
-
Verified
In JDK_GetVersionInfo0 only a two digit build number is expected. Once we hit b100 the build number gets a default value of zero, which Hotspot then ignores when reporting the JDK/JRE version information.
/* If the JDK_BUILD_NUMBER is of format bXX and XX is an integer
* XX is the jdk_build_number.
*/
if (strlen(jdk_build_string) == 3) {
if (jdk_build_string[0] == 'b' &&
jdk_build_string[1] >= '0' && jdk_build_string[1] <= '9' &&
jdk_build_string[2] >= '0' && jdk_build_string[2] <= '9') {
jdk_build_number = (unsigned int) atoi(&jdk_build_string[1]);
}
}
The above needs updating to recognize three digit build numbers
/* If the JDK_BUILD_NUMBER is of format bXX and XX is an integer
* XX is the jdk_build_number.
*/
if (strlen(jdk_build_string) == 3) {
if (jdk_build_string[0] == 'b' &&
jdk_build_string[1] >= '0' && jdk_build_string[1] <= '9' &&
jdk_build_string[2] >= '0' && jdk_build_string[2] <= '9') {
jdk_build_number = (unsigned int) atoi(&jdk_build_string[1]);
}
}
The above needs updating to recognize three digit build numbers