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 2020/10/21 19:58:00 UTC

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

Mike Beckerle created DAFFODIL-2420:
---------------------------------------

             Summary: 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
    Affects Versions: 2.7.0
            Reporter: Mike Beckerle


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)