sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-125) ModifiableMetadata.nonNullCollection(...) should determine more accuratly if the metadata object is being marshalled
Date Wed, 21 Aug 2013 12:47:51 GMT
Martin Desruisseaux created SIS-125:
---------------------------------------

             Summary: ModifiableMetadata.nonNullCollection(...) should determine more accuratly
if the metadata object is being marshalled
                 Key: SIS-125
                 URL: https://issues.apache.org/jira/browse/SIS-125
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Metadata
    Affects Versions: 0.3
            Reporter: Martin Desruisseaux
            Priority: Minor


Despite its name, the {{ModifiableMetadata.nonNullCollection(...)}} method may return {{null}}
in the special case of XML marshalling if and only if the marshalled element is optional.
This is a hack for preventing JAXB to create empty nodes for empty properties. However in
current implementation, the decision to return null or not is set by a thread-local flag,
which apply {{ModifiableMetadata}} being marshalled in that particular thread. It does not
work well when the user provides its own metadata implementation which create a Geotk metadata
object on the fly.

We need to make the {{ModifiableMetadata.canReturnNull()}} method more accurate in order to
not only use a thread-local flag, but also check for the particular metadata instance being
marshalled.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message