> > if (singletons[i] == null) {
> > synchronized(singletons[i]) {
> > synchronized (singletons[i]) {
>
> Surely you're joking. This is an open invitation for a
> NullPointerException.
Yes apologies for the typo it should have been:
if (singletons[i].reference == null) {
...
with appropriate later change.
David
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:25 EDT