You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniil Ovchinnikov (JIRA)" <ji...@apache.org> on 2017/09/22 17:06:00 UTC

[jira] [Created] (GROOVY-8328) Callable properties doesn't work with Java objects via closure delegate

Daniil Ovchinnikov created GROOVY-8328:
------------------------------------------

             Summary: Callable properties doesn't work with Java objects via closure delegate
                 Key: GROOVY-8328
                 URL: https://issues.apache.org/jira/browse/GROOVY-8328
             Project: Groovy
          Issue Type: Bug
            Reporter: Daniil Ovchinnikov


{code}
def mm = [someKey: 42, someClosure: { 43 }] // LinkedHashMap
mm.with {
    println someKey
    println someClosure() // MissingMethodException
}
{code}

It works however when {{mm instanceof GroovyObject}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)