Project

Profile

Help

Bug #3868

closed

Unknown cardinality value 40960

Added by Debbie Lockett over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2018-08-01
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

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.

Actions #1

Updated by Debbie Lockett over 5 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 9.8, trunk added

Patches committed.

Actions #2

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.

Actions #3

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

Also available in: Atom PDF