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/01/27 10:57:00 UTC

[jira] [Updated] (GROOVY-1569) correct closure property access to field access the same way it is done this.x

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

Paul King updated GROOVY-1569:
------------------------------
    Fix Version/s:     (was: 3.x)
                   4.x

> correct closure property access to field access the same way it is done this.x
> ------------------------------------------------------------------------------
>
>                 Key: GROOVY-1569
>                 URL: https://issues.apache.org/jira/browse/GROOVY-1569
>             Project: Groovy
>          Issue Type: Sub-task
>          Components: class generator
>            Reporter: Jochen Theodorou
>            Priority: Major
>             Fix For: 4.x
>
>
> this code:
> {code}
> class A {
>   private foo = 1
>   def getFoo(){
>     10.times { println this.foo }
>     return this.foo+1
>   }
> }
> def a = new A()
> println a.foo
> {code}
> should not end in a stack overflow



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