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

        Michele Vivoda created issue -
        Matt Benson made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3 [ 12312253 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development