Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-808

lengthKind="pattern" should produce length 0 on no-match. Currently causes a PE.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • s10
    • Back End, Middle "End"
    • None

      Currently, if the pattern does not match at all, then that is a runtime error.
      This is not correct. It should just be length 0.

      This is not clear from the DFDL Specification (I will suggest a clarification of this be added.)

      Changing this code to do the right thing breaks several tests:

      test_nested_patterns_02
      test_regexLookaheadFail
      test_nested_seq_01
      test_nested_seq
      test_litNil6

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: