classpath
[Top][All Lists]
Advanced

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

Re: StringBuilder


From: Thomas Zander
Subject: Re: StringBuilder
Date: Fri, 17 Dec 2004 16:04:00 +0100
User-agent: KMail/1.7.91

On Friday 17 December 2004 15:09, Jeroen Frijters wrote:
> Thomas Zander wrote:
> > Interresting concept;
> > several bugs:
> > 1) doing an aquire can return a null;  meaning the toString()
> > can cause nullpointer exceptions.
>
> Only if you use it concurrently from different threads. StringBuilder
> isn't thread safe so this is perfectly acceptable.

Sorry, I must have misunderstood your previous email saying:

> > Attached is an example of how StringBuilder could be made thread safe
> > and still enable sharing the char[].

-- 
Thomas Zander

Attachment: pgpEP4mqEFEJe.pgp
Description: PGP signature


reply via email to

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