Yes, this is original source of others articles. You can also see search result for keyword 'Singleton' in http://java.sun.com
-----Original Message----- From: Thomas Wagner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:01 PM To: [EMAIL PROTECTED] Subject: RE: [Eap-list] BUG: Code Inspection: Singleton not recognized I agree that this should probably go off-list but it is an important issue that many people don't know about and the double-checked pattern is popular (and faulty under current Java). Here is a link to a discussion of why it is broken, signed by many well known Java experts including Joshua Bloch, David Bacon, and Cliff Click. <http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html> If you use double-checked initialization like was described in this thread, you really should stop doing it until the new memory model comes along. (I know it sucks that it doesn't work but that is the way it is.) -Tom -- [EMAIL PROTECTED] "Always there's that space between what you feel and what you do, and in that gap all human sadness lies." - George Rodrigue _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
