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

Bad diagnostic if you make a type error in an expression

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s10
    • s5
    • Back End
    • None

      Threw to top level when I made an error in an expression.

      It should wrap this as a diagnostic object, and of course give me the context of the object in the schema whose expression contains the error.

      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

      Note that the error was that I wrote "

      { if (../tns:x eq 0) then true else false }

      " – see the error. There's no true or false in Xpath. You have to write true() and false().

              jadams Joshua Adams
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: