[
https://issues.apache.org/jira/browse/SCXML-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322169#comment-14322169
]
Ate Douma commented on SCXML-225:
---------------------------------
While I think this change is fine, I don't think reliable ordering of the
namelist/params attributes is a requirement.
The specification isn't saying anything about these being ordered and/or a
requirement to preserve such ordering nor is there any test for it.
*Any* form of namelist/parameter definition is 'ordered' in some way or
another, but without explicit wording in the specification, I recommend NOT to
read too much into this.
For Apache Commons SCXML however I think it is fine to provide this as *extra*
non-standard feature/behavior.
> Preserve order in <send> namelist attribute values
> --------------------------------------------------
>
> Key: SCXML-225
> URL: https://issues.apache.org/jira/browse/SCXML-225
> Project: Commons SCXML
> Issue Type: Improvement
> Affects Versions: 2.0
> Reporter: Franck Foutou
> Assignee: Woonsan Ko
> Priority: Minor
> Fix For: 2.0
>
> Attachments: Send.java.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The standard allows specifying the value of the namelist attribute of the
> <send> element as space-separated list of values, which implies an ordered
> sequence of items. These are later stored in
> org.apache.commons.scxml2.model.Send class in a HashMap where the supplied
> order is lost.
> Using a LinkedHashMap would fix this issue and preserve the order of items as
> specified in the XML file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)