[ 
https://issues.apache.org/jira/browse/GROOVY-8074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999995#comment-15999995
 ] 

ASF GitHub Bot commented on GROOVY-8074:
----------------------------------------

GitHub user shils opened a pull request:

    https://github.com/apache/groovy/pull/539

    GROOVY-8074: Statically compiled dot property accesses instance prope…

    …rty instead of Map property

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shils/groovy GROOVY-8074

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/539.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #539
    
----
commit abff6c7bf8a953f8f41d4f5080004c436757cb7e
Author: Shil Sinha <[email protected]>
Date:   2017-05-07T18:47:19Z

    GROOVY-8074: Statically compiled dot property accesses instance property 
instead of Map property

----


> @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
>
> {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
(v6.3.15#6346)

Reply via email to