commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <j...@apache.org>
Subject [jira] Created: (JXPATH-111) ClassCastException in PrecedingOrFollowingContext
Date Sun, 23 Dec 2007 01:48:43 GMT
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.


Mime
View raw message