Project

Profile

Help

Bug #3168

closed

Sample XPathExampleSA fails with UnsupportedOperationException

Added by Debbie Lockett about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2017-03-15
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

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)
Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions #4

Updated by O'Neil Delpratt almost 7 years ago

  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)
Actions #5

Updated by O'Neil Delpratt almost 7 years ago

  • Applies to branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF