SourceForge has been redesigned. Learn more.
Close

#424 XPath API: reset() doesn't work

v8.6
closed
5
2012-10-08
2005-11-17
Michael Kay
No

If the reset() method is called on a JAXP XPath object,
the XPath object becomes unusable: further attempts to
use it are likely to result in a NullPointerException.

Source fix: in net.sf.saxon.xpath.XPathEvaluator,
replace method reset() (line 213) by

public void reset() {
config = null;
contextNode = null;
stripSpace = false;
staticContext = new StandaloneContext(config);
}

Discussion