hg: jdk7/tl/jdk: 6952330: Fix for 6933217 broke contract of StringBuffer.ensureCapacity

martinrb at google.com martinrb at google.com
Thu May 13 21:59:50 PDT 2010


Changeset: e85e03ef61c1
Author:    martin
Date:      2010-05-13 21:56 -0700
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/e85e03ef61c1

6952330: Fix for 6933217 broke contract of StringBuffer.ensureCapacity
Summary: make sure to grow with size => size * 2 + 2
Reviewed-by: dholmes, chegar, ohair

! src/share/classes/java/lang/AbstractStringBuilder.java
+ test/java/lang/StringBuffer/Capacity.java




More information about the net-dev mailing list