>>>>> "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

Reply via email to