You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/03/05 18:59:15 UTC
[GitHub] [incubator-daffodil] stevedlawrence opened a new pull request #193:
Ensure content/valueLength expressions are not considered constants
stevedlawrence opened a new pull request #193: Ensure content/valueLength expressions are not considered constants
URL: https://github.com/apache/incubator-daffodil/pull/193
Although it should result in an error, calling contentLength() or
valueLength() on an immediate parent does not always trigger the normal
code paths that determine that an expression is not a constant. This can
lead to an unknown state and ultimately a NullPointerException. By
overriding the contentLength and valueLength methods in the FakeDINode,
we ensure that if this special case occurs we correctly determine this
expression is not a constant.
Also removes debugging information from the error message that results
when this expression is eventually evaluated.
DAFFODIL-2078
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services