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

Eric Milles resolved GROOVY-7890.
---------------------------------
    Fix Version/s: 4.0.0-rc-2
       Resolution: Fixed

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

> Lack of compilation error while statically compiled the closure.
> ----------------------------------------------------------------
>
>                 Key: GROOVY-7890
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7890
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.5, 2.4.7
>         Environment: Linux version 3.13.0-24-generic (gcc version 4.8.2 
> (Ubuntu 4.8.2-19ubuntu1) )
>            Reporter: Damian Warszawski
>            Assignee: Eric Milles
>            Priority: Major
>              Labels: features
>             Fix For: 4.0.0-rc-2
>
>
> Expecting compile time error that cannot reference non-static variable from 
> static context but stacktrace presents runtime MissingPropertyException. 
> @CompileStatic is enabled on the class level. The code block to reproduce the 
> issue can be found in the attached link. It also includes the output of 
> running the sample code.
> https://gist.github.com/dwarszawski/41aed2cf53486a5603447f54a44b4ac3 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to