Bug #3868
closedUnknown cardinality value 40960
100%
Description
A number of QT3 converted tests crash with "java.lang.AssertionError: unknown cardinality value 40960" when running in 9.9 with -export. e.g. -s:fn-position -t:K-ContextPositionFunc-15, and -s:fn-subsequence -t:K-SeqSubsequenceFunc-8.
The cardinality for the result of fn:subsequence#2 is set as arguments[0].getCardinality() | StaticProperty.ALLOWS_ZERO
- which can result in a cardinality of zero-or-many (but not one) which is not recognised as an allowed cardinality. This should be updated to ... | StaticProperty.ALLOWS_ZERO_OR_ONE
.
This bug only showed up when running the tests in 9.9 with -export, but the same code is also found in 9.8. The AssertionError is thrown by Cardinality.getOccurenceIndicator, but in fact perhaps the default should return "*" rather than throwing this error.
Please register to edit this issue