[jira] Created: (JXPATH-111) ClassCastException in PrecedingOrFollowingContext

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (JXPATH-111) ClassCastException in PrecedingOrFollowingContext

ASF GitHub Bot (Jira)
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 | Threaded
Open this post in threaded view
|

[jira] Resolved: (JXPATH-111) ClassCastException in PrecedingOrFollowingContext

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/JXPATH-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson resolved JXPATH-111.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

confirmed, commit revision 606733.  Thanks!

> 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
>             Fix For: 1.3
>
>
> 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.