JavaMemoryModel: [Fwd: double check article: what if constructor throws exception]

From: Kammy Wesley (
Date: Tue Jun 12 2001 - 20:01:51 EDT

I think my first post didn't make it to the list, so I am reposting.
Apologies if this is a double-post.



Kammy Wesley wrote:
> Hello all:
> I have read the article on "Double Checked Locking is Broken", and I
> have a question. If the constructor for my singleton throws an
> exception, do I have any other choice besides the synchronized
> "getHelper" method for correctly instantiating my singleton?
> It doesn't seem that I can use the "create another class to hold the
> singleton method" as referred to near the end of the article, right?
> thanks,
> Kammy
JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:32 EDT