* java/lang/StringBuffer.java (replace): Calculate length for
arraycopy() correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33822
138bc75d-0d04-0410-961f-
82ee72b054a4
(replace): Reimplemented. Fix javadoc.
(reverse): Call ensureCapacity_unsynchronized().
(StringBuffer (String)): Use DEFAULT_CAPACITY.
+
+ (replace): Calculate length for arraycopy() correctly.
2000-05-09 Tom Tromey <tromey@cygnus.com>
ensureCapacity_unsynchronized (count + delta);
if (delta != 0 && end < count)
- System.arraycopy(value, end, value, end + delta, count - start);
+ System.arraycopy(value, end, value, end + delta, count - end);
str.getChars (0, len, value, start);
count += delta;