Project

Profile

Help

Bug #1834

closed

ClassCastException in XdmNode.getParent()

Added by Michael Kay almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2013-06-28
Due date:
% Done:

100%

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

Description

In SaxonHE 9.5.1.1, if you have an XdmNode that has no parent and you

call getParent(), you get a class cast exception in:

public XdmNode getParent() {

   return (XdmNode) XdmValue.wrap(getUnderlyingNode().getParent());

}

The problem is that getUnderlyingNode().getParent() returns the

instance of the XdmEmptySequence and that's not castable to XdmNode.

                                   Be seeing you,

                                     norm

Please register to edit this issue

Also available in: Atom PDF