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

JDK_GetVersionInfo0 only expects a two digit build number

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b118
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              mchung Mandy Chung
              Reporter:
              dholmes David Holmes
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: