Issue Details (XML | Word | Printable)

Key: GROOVY-2150
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Jürgen Hermann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

ClosureMetaClass regression (mapping of ArrayLIst to parameters)

Created: 27/Sep/07 07:03 AM   Updated: 11/Oct/07 06:58 PM   Resolved: 11/Oct/07 06:58 PM
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide

Test case:
def data = [
[1.0, [1.234, 0]],
]

data.each { println it }

data.each { x, y ->
println "$x $y"
}

Groovy Version: 1.1-beta-2 JVM: 1.6.0_02-b06:

[1.0, [1.234, 0]]
1.0 [1.234, 0]

Groovy Version: 1.1-beta-3 JVM: 1.6.0_01-b06

[1.0, [1.234, 0]]
Caught: groovy.lang.MissingMethodException: No signature of method: x6.doCall() is applicable for argument types: (java.util.ArrayList) values: {[1.0, [1.234, 0]]}
at x6.run(x6.groovy:7)
at x6.main(x6.groovy)



Jochen Theodorou added a comment - 11/Oct/07 06:58 PM

fixed