[
https://issues.apache.org/jira/browse/DAFFODIL-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Beckerle resolved DAFFODIL-1164.
-------------------------------------
Resolution: Not A Problem
Message is adequate - identifies 'b' in expression.
> DPath: Need more specific error message for invalid predicates
> --------------------------------------------------------------
>
> Key: DAFFODIL-1164
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1164
> Project: Daffodil
> Issue Type: Bug
> Components: Diagnostics, Usability
> Affects Versions: s15
> Reporter: Elizabeth Fahl
> Priority: Minor
>
> DPath only allows predicates as integer expressions to index arrays. With an
> invalid test, a Schema Definition Error is thrown but it seems to be trying
> to parse the predicate as a path and giving the error message that the
> element was not found.
> {noformat}
> [error] Test
> edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressionsDebug.test_predicate_02
> failed:
> java.lang.Exception: Schema Definition Error: No element corresponding to
> step b found.
> {noformat}
> See tests:
> test_predicate_02
> test_predicate_03
> In files:
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/expressions.tdml
--
This message was sent by Atlassian Jira
(v8.3.4#803005)