Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6994413

JDK_GetVersionInfo0 only expects a two digit build number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • other-libs
    • 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

            mchung Mandy Chung (Inactive)
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: