QT3 test case filter-limits-003 fails with bytecode feature
The following test case filter-limits-003 fails when the bytecode feature switched on.
the expected results is achieved in the interpreted mode.
<test-case name="filter-limits-002"> <description>Test numeric predicates at integer limits</description> <created by="Christian Gruen" on="2016-02-04"/> <dependency type="spec" value="XQ10+"/> <test>'a'</test> <result> <assert-empty/> </result> </test-case>
Test suite driver setup:
. catalog.xml -o:results/saxon -lang:XQ31 -bytecode:on -s:prod-Predicate -t:filter-limits-003
Assertion assert-empty () failed *** TEST-FAILURE. Result: a<=======
#1 Updated by Michael Kay almost 4 years ago
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Fix Committed on Branch 9.7 added
I have fixed this particular case by checking the literal value of the filter expression at compile time (before bytecode generation). This won't fix the case where a large subscript value is computed dynamically, however, this is sufficient of an edge case that I don't feel compelled to investigate it until some user reports that they are affected by the problem.
Please register to edit this issue