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 2020/11/11 02:02:05 UTC

[jira] [Closed] (GROOVY-6825) Static compiler does not always make direct setter call inside inner class

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

Paul King closed GROOVY-6825.
-----------------------------

> Static compiler does not always make direct setter call inside inner class
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-6825
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6825
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.3.1
>            Reporter: Cédric Champeau
>            Priority: Major
>
> Similarily to GROOVY-6823, this code doesn't produce a direct setter call. However, this one is more complex to fix due to the current static compilation architecture.
> {code}
> @groovy.transform.CompileStatic
> class Outer {
>     String outerProperty
>     private class Inner {
>         String fromInner() {
>             outerProperty = 'outer'
>             //uterProperty
>         }
>     }
>     String blah() {
>         new Inner().fromInner()
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)