Commons JXPath
  1. Commons JXPath
  2. JXPATH-111

ClassCastException in PrecedingOrFollowingContext

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      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>

        Activity

        Hide
        Matt Benson added a comment -

        confirmed, commit revision 606733. Thanks!

        Show
        Matt Benson added a comment - confirmed, commit revision 606733. Thanks!

          People

          • Assignee:
            Unassigned
            Reporter:
            Michele Vivoda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development