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

Eric Milles resolved GROOVY-11352.
----------------------------------
    Fix Version/s: 5.0.0-alpha-9
       Resolution: Fixed

https://github.com/apache/groovy/commit/d98796e41b47da04570bdef52ba4ed57d3e12d66

> 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
>             Fix For: 5.0.0-alpha-9
>
>
> 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)

Reply via email to