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

Better diagnostic message for incorrect syntax when a DFDL property is an expression

XMLWordPrintableJSON

      Regarding the test, ocke_rel, for occursCountKind=”expression” in daffodil-test\src\test\scala-debug\daffodil\section23\dfdl_expressions\TestDFDLExpressionsDebug.scala:

      Mike Beckerle's comments:

      Oh wow. This test fails because it has dfdl:occursCount="

      {...} "

      Note the white spaces before { and after }.

      If you take those out so it is dfdl:occursCount="{...}

      " then the test passes.

      So, there is a bug here that there is no reasonable diagnostic at all.

      Technically, if { is not the very first character of the property value, then you gave it a string as the value, not an expression.

      I suggest the issue should be fixed in CompiledExpression, which should do a better job helping find this kind of error.

              Unassigned Unassigned
              pchu Paul Chu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: