[geotk] [JIRA] Created: (GEOTK-22) Collections created internaly by
metadata should be List instead than Set
Martin Desruisseaux (JIRA)
jira at geomatys.com
Tue Jul 21 04:55:53 EDT 2009
Collections created internaly by metadata should be List instead than Set
-------------------------------------------------------------------------
Key: GEOTK-22
URL: http://jira.geotoolkit.org/browse/GEOTK-22
Project: Geotoolkit
Issue Type: Bug
Components: Metadata
Affects Versions: 3.01
Reporter: Martin Desruisseaux
Assignee: Martin Desruisseaux
Fix For: 3.02
The {{org.opengis.metadata}} API uses {{Collection}}, in order to let the choice for implementors between {{List}} and {{Set}}. The Geotoolkit implementation uses {{Set}} by default. However this choice is unsafe because the elements added in those {{Set}} may be modified by the user after the insertion, thus breaking the {{HashSet}} contract.
The safest fix is to relies on {{List}} instead than {{Set}}. This change doesn't have any impact on the public API. However if a user cast the return value of a metadata method, the result of the cast may change.
--
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