You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/01/22 04:46:00 UTC
[jira] [Resolved] (GROOVY-8073) Map delegate within @CompileStatic
[ https://issues.apache.org/jira/browse/GROOVY-8073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-8073.
-------------------------------
Resolution: Fixed
Assignee: Paul King
Fix Version/s: 3.0.0-alpha-5
2.5.6
I believe this was fixed as part of GROOVY-7996.
> Map delegate within @CompileStatic
> ----------------------------------
>
> Key: GROOVY-8073
> URL: https://issues.apache.org/jira/browse/GROOVY-8073
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.4.8
> Reporter: Daniil Ovchinnikov
> Assignee: Paul King
> Priority: Major
> Fix For: 2.5.6, 3.0.0-alpha-5
>
>
> {code}
> @CompileStatic
> class Main {
> static void main(String[] args) {
> def map = [a: 1, b: 2]
> map.with { // Exception in thread "main" java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to groovy.lang.GroovyObject
> println a
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)