XdmSequenceIterator may return duplicate nodes
next() method on
XdmSequenceIterator is called repeatedly without calling
XdmSequenceIterator may incorrectly return duplicate items.
#5 Updated by Michael Kay 9 months ago
- Status changed from Resolved to In Progress
Reviewed the changes.
I think the contract for
Iterator (and the behaviour of the current
XdmSequenceIterator) is that after
hasNext() returns false, a further call on
next() should throw
NoSuchElementException rather than return null.
Also, I think the comment in
next() that the exception cannot occur is wrong. I will try and construct an example.
Please register to edit this issue