[
https://issues.apache.org/jira/browse/DAFFODIL-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Adams updated DAFFODIL-2375:
---------------------------------
Description:
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.
was:
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 [https://github.com/apache/incubator-daffodil/pull/401] for a test that
demonstrates this issue.
> 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)