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

Fix for 6933217 broke contract of StringBuffer.ensureCapacity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • core-libs
    • m08
    • 7
    • b97
    • generic
    • generic
    • Verified

      The fix for 6933217 inadvertently changed the array expansion algorithm for StringBuffer (et al) ensureCapacity to simply double the size; however the specification requires that it expand by 2N+2.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: