On 11/05/2008, Tom Tromey <[EMAIL PROTECTED]> wrote: > >>>>> "Andrew" == Andrew John Hughes <[EMAIL PROTECTED]> writes: > > Andrew> This adds a feature to CPStringBuilder so that it knows > Andrew> when its array has been shared with a String object. Once > Andrew> this has happened, any future write operations will allocate > Andrew> a new array and reset the flag. > > CPStringBuilder.toString's documentation still says: > > [...] Note > * that the result is not a copy, so future modifications to this buffer > * do affect the String. > > That isn't true any more ... and anyway should never have been true, > since a mutable String will mess with any number of things internally. > > > Tom >
Well caught. Must have missed that occurrence. -- Andrew :-) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8