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 2018/03/06 23:15:02 UTC
[jira] [Closed] (GROOVY-8074) @CompileStatic class property
accessed instead of map property
[ https://issues.apache.org/jira/browse/GROOVY-8074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8074.
-----------------------------
> @CompileStatic class property accessed instead of map property
> --------------------------------------------------------------
>
> Key: GROOVY-8074
> URL: https://issues.apache.org/jira/browse/GROOVY-8074
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.4.8
> Reporter: Daniil Ovchinnikov
> Assignee: Shil Sinha
> Priority: Major
> Fix For: 2.4.12
>
>
> {code}
> class MyMap extends LinkedHashMap {
> def foo = 1
> }
> @CompileStatic
> class Main {
> static void main(String[] args) {
> def map = new MyMap()
> map.put('foo', 42)
> println map.foo // 1 is printed, should be 42
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)