You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2023/11/03 18:55:00 UTC
[jira] [Assigned] (GROOVY-8328) Callable properties doesn't work with Java objects via closure delegate
[ https://issues.apache.org/jira/browse/GROOVY-8328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-8328:
-----------------------------------
Assignee: Eric Milles
> 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
> Assignee: Eric Milles
> Priority: Major
>
> {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
(v8.20.10#820010)