You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Brandon Sloane (JIRA)" <ji...@apache.org> on 2019/07/03 02:19:00 UTC

[jira] [Resolved] (DAFFODIL-2148) No compile time error when using nonexistent TypeCalc function

     [ https://issues.apache.org/jira/browse/DAFFODIL-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Sloane resolved DAFFODIL-2148.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Fixed in commit a7c890167f7b5d38cfbab33a4c47d902757293ea

> No compile time error when using nonexistent TypeCalc function
> --------------------------------------------------------------
>
>                 Key: DAFFODIL-2148
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2148
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Front End
>            Reporter: Brandon Sloane
>            Assignee: Brandon Sloane
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Consider schema such as:
> {quote}<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) }"/>
> {quote}
> Or
> {quote}<xs:element name="root" type="xs:int" dfdl:inputValueCalc="\{ dfdl:inputTypeCalcInt('tns:nonExistantType', 0) }"/>
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)