Project

Profile

Help

Bug #6253

closed

Atomized item type for an array (test CastableAs667)

Added by Michael Kay about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2023-11-15
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

We're seeing a test failure on the 12.4 branch in QT3 test case CastableAs667; although the test passed in earlier releases, the underlying problem in the code seems to have been present for some time (and it could have other symptoms).

The code in Atomizer.getAtomizedItemType() is supposed to return the item type of the items that will result from atomizing a given expression. The expression in this case is [[], (), [[3, ()]]] and the atomised item type should be xs:integer. However the method (both on the 12.4 branch and earlier) is incorrectly returning xs:error. This causes the candidate 12.4 code to fall over saying xs:error cannot be converted to the required type.

Please register to edit this issue

Also available in: Atom PDF