Bug #3168
closed
Sample XPathExampleSA fails with UnsupportedOperationException
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Description
The XPathExampleSA sample (which uses the JAXP XPath API) does not run properly:
Exception in thread "main" java.lang.UnsupportedOperationException: XPathFunctionCall.copy()
at net.sf.saxon.xpath.XPathFunctionCall.copy(XPathFunctionCall.java:100)
- Status changed from New to Resolved
- Fix Committed on Branch 9.7, 9.8 added
Fixed by implementing the XPathFunctionCall.copy() method. Committed for 9.7 and 9.8.
Note: the problem occurs when a free-standing XPath expression is evaluated using the JAXP XPath API, and contains an extension function call to be resolved using the JAXP FunctionResolver mechanism. Such a function call is represented internally as an XPathFunctionCall node on the expression tree. All expression nodes are expected to provide a method to allow the expression to be copied when tree rewrites take place during optimization; the failure occurs because this method is not implemented.
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.18 added
Bug fix applied in the Saxon 9.7.0.18 maintenance release.
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
- Applies to branch deleted (
9.8)
Please register to edit this issue
Also available in: Atom
PDF