Bug #3168
closedSample XPathExampleSA fails with UnsupportedOperationException
100%
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)
Updated by Debbie Lockett about 7 years ago
- 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.
Updated by Michael Kay about 7 years ago
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.
Updated by O'Neil Delpratt about 7 years ago
- 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.
Updated by O'Neil Delpratt almost 7 years ago
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
Please register to edit this issue