[concurrency-interest] Static initializer
Dhanji R. Prasanna
dhanji at gmail.com
Tue Apr 10 22:46:05 EDT 2007
On 4/11/07, Hanson Char <hanson.char at gmail.com> wrote:
> I would make the static "instance" field final as well in this case.
How would this help the thread safety? It also alters the semantics of the
instance (say you wanted to replace it later on) does it not?
The static initializer is sufficiently safe in this case for races to
getInstance() -- correct me if Im wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest