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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4, 2.0.6
    • 2.2.0-beta-1
    • groovy-jdk
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: