groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-8073) Map delegate within @CompileStatic
Date Thu, 21 Feb 2019 06:19:03 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King closed GROOVY-8073.
-----------------------------

> 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)

Mime
View raw message