Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2420

choice branch which is zero-occurrence array is missing - should cause backtracking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.0
    • None
    • Back End, DFDL Language, QA
    • None

    Description

      Erratum 5.39 clarifies behavior on arrays in a choice branch, when there are zero occurrences of the array element

      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.

      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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: