[
https://issues.apache.org/jira/browse/DAFFODIL-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214707#comment-17214707
]
Steve Lawrence commented on DAFFODIL-2375:
------------------------------------------
Note that this issue is somewhat related to DAFFODIL-2324, since both deal with
how we select which branch choice to unparse when multiple branches have no
elements in them.
> Multiple calls to setVariable when unparsing choice branches
> ------------------------------------------------------------
>
> Key: DAFFODIL-2375
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2375
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 2.7.0
> Reporter: Josh Adams
> Assignee: Josh Adams
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Discovered this issue while working on a schema project.
> While the schema parses fine, for some reason multiple SetVariable parsers
> are getting instantiated for the same variable, which causes a double-set
> error to occur.
>
> See test_choiceBranchVariables in
> daffodil-test/src/test/scala/org/apache/daffodil/section07/variables/TestVariables.scala
> for a test that demonstrates this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)