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.
Updated by Debbie Lockett over 5 years ago
- Status changed from New to Resolved
- Fix Committed on Branch 9.8, trunk added
Patches committed.
Updated by O'Neil Delpratt over 5 years ago
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.9.0.1 added
Bug fix applied in the Saxon 9.9.0.1 major release.
Leave open until fix applied in the next Saxon 9.8 maintenance release.
Updated by O'Neil Delpratt over 5 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.8.0.15 added
Bug fix applied in the Saxon 9.8.0.15 maintenance release.
Please register to edit this issue