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

(coll) TreeMap.buildFromSorted midpoint calculation

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      Doug Lea writes:

      """
      It just occurred to me that there is another binary-search-like indexing
      overflow error, in TreeMap.java line 2357:
              int mid = (lo + hi) / 2;
      ought to be
              int mid = (lo + hi) >>> 1;
      """

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                martin Martin Buchholz
                Reporter:
                martin Martin Buchholz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: