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

DPath: Need more specific error message for invalid predicates

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • s15
    • Diagnostics, Usability
    • None

      DPath only allows predicates as integer expressions to index arrays. With an invalid test, a Schema Definition Error is thrown but it seems to be trying to parse the predicate as a path and giving the error message that the element was not found.

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressionsDebug.test_predicate_02 failed: 
      java.lang.Exception: Schema Definition Error: No element corresponding to step b found.

      See tests:
      test_predicate_02
      test_predicate_03

      In files:
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/expressions.tdml

              Unassigned Unassigned
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: