You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/12/19 17:24: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 ]
Eric Milles updated GROOVY-1569:
--------------------------------
Fix Version/s: (was: 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
> Labels: StackOverflowError
>
> 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.20.1#820001)