Actions
Bug #3972
closedXPathExpression.evaluateSingle() does not close the iterator
Start date:
2018-10-14
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:
Description
The method XPathExpression.evaluateSingle() is defined to return the first item in the result even if there are several. To accomplish this it opens an iterator and reads off the first item. The iterator is not closed. For some iterators, failing to close the iterator either explicitly or by exhausting its contents may cause resources to be retained. This happens most notably with streaming (where the expression is saxon:stream()); it can also happen with some kinds of CollectionIterator.
Please register to edit this issue
Actions