Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.1-rc-3
-
None
-
None
-
Groovy Trunk: rev 9408 and rev 9467.
Description
List list = ['groovy', 'java'] Map map = [a: 1, b: 2] list.each { map.keySet().each {Date d -> println d } }
The script above produces and endless loop (stopped by a StackOverflowError). I guess this should not happen. I would expect the same behavior as when executing solely:
Map map = [a: 1, b: 2] map.keySet().each {Date d -> println d }
which stops with an: Caught: groovy.lang.MissingMethodException: ...