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

[jira] [Closed] (GROOVY-7077) NullPointerException compiling fully qualified reference to 'this' of outer class inside inner class

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

Paul King closed GROOVY-7077.
-----------------------------

> NullPointerException compiling fully qualified reference to 'this' of outer class inside inner class
> ----------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7077
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7077
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.3.4, 2.3.6
>            Reporter: Denis Murashev
>             Fix For: 2.3.11, 2.4.0
>
>
> Compiling a class with inner class,  using the ClassName.this syntax causes an error in the compiler.
> The problem can be reproduced with following simple code fragment:
> {code}
> class BrokenGroovy {
>   def user = new Object() {
>     def field = BrokenGroovy.this
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)