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

Iterating through groovy binding variables in a script results in java.util.ConcurrentModificationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-1
    • 1.0-RC-1
    • None
    • None
    • win xp / All.

    Description

      Iterating through groovy binding variables in a script results in java.util.ConcurrentModificationException

      #test.gy

      for (keyval in binding.variables){ //exception gets thrown at this line
      println "key is $keyval.key and value is $keyval.value"
      }

      the for loop throws a java.util.ConcurrentModificationException while iterating through groovy binding variables Map.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            karthikg Karthik Guru
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: