groovy

ClosureMetaClass regression (mapping of ArrayLIst to parameters)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc-1
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

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)

Activity

Hide
blackdrag blackdrag added a comment -

fixed

Show
blackdrag blackdrag added a comment - fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: