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

Bad diagnostic if you make a type error in an expression

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: s5
    • Fix Version/s: s10
    • Component/s: Back End
    • Labels:
      None

      Description

      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().

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks