Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5931

groovy.util.slurpersupport.GPathResult is not java.lang.Iterable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.0.6
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Despite it has an iterator() method, GPathResult is not Iterable.

      For this reason constructs like e.g.

      xml.theElement.collectEntries{ /* */ }

      don't work.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              veita Alexander Veit
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: