Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads (original) (raw)

Jim Gish jim.gish at oracle.com
Mon Jun 25 19:32:44 UTC 2012


Hopefully, this will address most, if not all of the suggestions made to date.

....Jim

diff -r f37afaa214e9 src/share/classes/java/lang/StringBuffer.java --- a/src/share/classes/java/lang/StringBuffer.java Mon Jun 25 14:22:42 2012 -0400 +++ b/src/share/classes/java/lang/StringBuffer.java Mon Jun 25 15:30:57 2012 -0400 @@ -39,40 +39,38 @@

@@ -122,10 +120,10 @@ /** * Constructs a string buffer initialized to the contents of the * specified string. The initial capacity of the string buffer is

null

@@ -134,16 +132,16 @@

  /**
   * Constructs a string buffer that contains the same characters

null

@@ -264,10 +262,10 @@ * the new character sequence is equal to the character at index k * in the old character sequence, if k is less than n; * otherwise, it is equal to the character at index k-n in the

@@ -280,10 +278,10 @@

  /**

appended,

of the * argument. * @@ -291,12 +289,12 @@ * invocation of this.append(s, 0, s.length()); * *

This method synchronizes on this (the destination)



More information about the core-libs-dev mailing list