[ https://issues.apache.org/jira/browse/GROOVY-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11352: --------------------------------- Language: groovy > Reference to this in ctor before this/super call false positive > --------------------------------------------------------------- > > Key: GROOVY-11352 > URL: https://issues.apache.org/jira/browse/GROOVY-11352 > Project: Groovy > Issue Type: Bug > Components: Compiler > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > > Consider the following: > {code:groovy} > class Outer { > static foo() {} > static class Inner { > Inner() { > super(foo()) // Cannot reference 'foo' before supertype constructor has > been called > } > } > } > {code} > The detection of "this" variable expression does not exclude cases of > implicit-this reference to static outer class method. -- This message was sent by Atlassian Jira (v8.20.10#820010)