[udig-devel] [jira] Created: (UDIG-1387) Double-checked locking is broken

Dirk Starke (JIRA) jira at codehaus.org
Wed Apr 30 03:31:46 PDT 2008


Double-checked locking is broken
--------------------------------

                 Key: UDIG-1387
                 URL: http://jira.codehaus.org/browse/UDIG-1387
             Project: uDIG
          Issue Type: Bug
          Components: API catalog
    Affects Versions: UDIG 1.1-RC14
            Reporter: Dirk Starke
            Priority: Minor
         Attachments: double.patch

The double checked locking idiom used in some tutorial classes is broken (see http://www.javaworld.com/jw-02-2001/jw-0209-double.html). This pattern must not be used anymore in any Java program, thus using it in tutorial code is misleading.

The attached patch fixes the code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the udig-devel mailing list