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

        Activity

        Hide
        mchung Mandy Chung added a comment -
        BT2:EVALUATION

        The number of builds for JDK 7 exceeds two digits (99). The version string format
        needs to be updated to support this. The build number defined in the jdk_version_info
        struct is 1-byte (i.e. the max build number is 255).
        Show
        mchung Mandy Chung added a comment - BT2:EVALUATION The number of builds for JDK 7 exceeds two digits (99). The version string format needs to be updated to support this. The build number defined in the jdk_version_info struct is 1-byte (i.e. the max build number is 255).
        Hide
        mchung Mandy Chung added a comment -
        Show
        mchung Mandy Chung added a comment - BT2:EVALUATION Changeset URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/e95c7f8979ee
        Show
        jprtbugupd JPRT Bug Updates (Inactive) added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/e95c7f8979ee

          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: