classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StringBuilder


From: Archie Cobbs
Subject: Re: StringBuilder
Date: Fri, 17 Dec 2004 10:07:21 -0600
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041129

Jeroen Frijters wrote:
>>>>Attached is an example of how StringBuilder could be made 
>>>>thread safe and still enable sharing the char[].
> 
> Yeah, sorry about that. Thread safe in this case meant that it wouldn't
> be possible to cause security problems by using the StringBuilder from
> multiple threads, not that it would actually be usuable by multiple
> threads (concurrently).

This is obvious but I'll go out on a limb and state it anyway :-)
Of course it shouldn't be possible to create a mutable String, even
with a "misuse" of StringBuilder by multiple threads.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


*
Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message.
*





reply via email to

[Prev in Thread] Current Thread [Next in Thread]