Non-synchronized StringBuffer
Anthony Green
green@redhat.com
Mon Nov 26 07:07:00 GMT 2001
Tom Tromey wrote:
> It isn't as easy as it sounds. For one thing, a reference is passed
> to any methods invoked on it, and these methods might save `this' (for
> that matter, a constructor might save `this' somewhere).
We could annotate class files with this information. It wouldn't be
perfect, but my guess is that it would still be very useful (esp. with
String and the like).
AG
More information about the Java
mailing list