ClassCastException in PrecedingOrFollowingContext
-------------------------------------------------

                 Key: JXPATH-111
                 URL: https://issues.apache.org/jira/browse/JXPATH-111
             Project: Commons JXPath
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Michele Vivoda
            Priority: Minor


in PrecedingOrFollowingContext  at line 151
I believe the code should be changed, from

it = (PropertyIterator) stack.peek();
                            
to

it = (NodeIterator) stack.peek();

Test case:

count(//preceding::node())

<root><a1><b1/><b2/></a1><a2/></root>
    



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to