[geotk] [JIRA] Created: (GEOTK-26) Metadata are only partially thread-safe

Martin Desruisseaux (JIRA) jira at geomatys.com
Wed Aug 5 08:26:49 EDT 2009


Metadata are only partially thread-safe
---------------------------------------

                 Key: GEOTK-26
                 URL: http://jira.geotoolkit.org/browse/GEOTK-26
             Project: Geotoolkit
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 3.02, 3.01, 3.00
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 3.03


The getter methods in our implementation of ISO 19115 were intentionnaly not synchronized when the method does nothing else than returning an object reference. The rational was that fetching an object reference is an atomic operation anyway. However while the reference is garanteed to be correct, the values in the references object may not be fully published (see _Java concurrency in practice_). We should synchronize all methods, including the trivial ones.

Note that in this process, we noticed a few unsynchronized non-trivial methods, which are clearly bugs.


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

        


More information about the Geotoolkit mailing list