You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2021/02/05 20:16:00 UTC

[jira] [Updated] (DAFFODIL-2420) choice branch which is zero-occurrence array is missing - should cause backtracking

     [ https://issues.apache.org/jira/browse/DAFFODIL-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Beckerle updated DAFFODIL-2420:
------------------------------------
    Component/s: QA
                 DFDL Language

> choice branch which is zero-occurrence array is missing - should cause backtracking
> -----------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2420
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2420
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, DFDL Language, QA
>    Affects Versions: 2.7.0
>            Reporter: Mike Beckerle
>            Priority: Minor
>
> Erratum 5.39 clarifies behavior on arrays in a choice branch, when there are zero occurrences of the array element
> {quote}If the branch is an element declaration having dfdl:occursCountKind='expression' or dfdl:occursCountKind='parsed', then zero instances are possible. If the branch parses successfully without a discriminator but produces no element occurrences, then the branch is considered missing, and the parser looks for the next branch.
> {quote}
> We need to ensure Daffodil implements this behavior, and/or add tests to verify it.
> Note: it may be that this is daffodil's behavior, but I somehow doubt it.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)