Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2148

No compile time error when using nonexistent TypeCalc function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • Diagnostics, Front End
    • None

    Description

      Consider schema such as:

      <xs:simpleType name="nonExistantTypeCalc" type="xs:int" dfdl:lenthKind="explicit" dfdl:length="1" />
      <xs:element name="root" type="xs:int" dfdl:inputValueCalc="{ dfdl:inputTypeCalcInt('tns:nonExistantTypeCalc', 0) }"/>

      Or

      <xs:element name="root" type="xs:int" dfdl:inputValueCalc="{ dfdl:inputTypeCalcInt('tns:nonExistantType', 0) }"/>

      In principle, it should be possible to report this as an SDE at compile time. However, at the moment no error is reported until the expression is evaulated at runtime.

      Attachments

        Activity

          People

            brandon.sloane Brandon Sloane
            brandon.sloane Brandon Sloane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: