You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Vijaykumar (JIRA)" <ji...@apache.org> on 2015/06/16 14:22:00 UTC
[jira] [Comment Edited] (GROOVY-7467) Expected parameter of type
java.lang.Object but got java.util.Map in groovy 2.3.10
[ https://issues.apache.org/jira/browse/GROOVY-7467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584767#comment-14584767 ]
Vijaykumar edited comment on GROOVY-7467 at 6/16/15 12:21 PM:
--------------------------------------------------------------
def items = getItems(itemID) // getItems returns list in my code
items?.each { Map eachItem ->
def item = eachItem
}
was (Author: vijay26):
def items = getItems(itemID) // getItems returns list in my code
destinations?.each { Map eachItem ->
def item = eachItem
}
> Expected parameter of type java.lang.Object but got java.util.Map in groovy 2.3.10
> ----------------------------------------------------------------------------------
>
> Key: GROOVY-7467
> URL: https://issues.apache.org/jira/browse/GROOVY-7467
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.3.10
> Reporter: Vijaykumar
> Assignee: Jochen Theodorou
>
> Expected parameter of type java.lang.Object but got java.util.Map
> I'm getting the above exception in the groovy 2.3.10..
> I have declared the closure parameter as Map in my code. The same code is working in groovy 2.2.2.
> I am upgrading groovy from 2.2.2 to 2.3.10.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)