Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 distinct() fails with ArrayBoundCheck - ID: 444530
Last Update: Settings changed ( mhkay )

When the saxon:distinct() or EXSLT set:distinct()
function is called to process a node-set containing
exactly 20*(2^n) nodes (e.g. 20, 40, 80, 160, ...),
and the nodes need to be sorted into document order,
an ArrayOutOfBoundsException occurs
(com.icl.saxon.NodeSetExtent, line 337)

Raised by David Benny [david.benny@btconnect.com]

Present in 6.4.3 and probably in most previous
releases.

Source code has been fixed (advance() method in
DistinctEnumeration must call hasMoreElements() before
calling nextElement()).

The bug report also revealed that the path
expression ./descendant::*/attribute::* was being
evaluated with an unnecessary sort.

MK


Michael Kay ( mhkay ) - 2001-07-25 16:34

5

Closed

Fixed

Michael Kay

EXSLT extensions

v6.4

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2001-09-18 13:29 mhkay
resolution_id None 2001-09-18 13:29 mhkay
close_date - 2001-09-18 13:29 mhkay