[ 
https://issues.apache.org/jira/browse/GROOVY-7890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15389304#comment-15389304
 ] 

Jochen Theodorou commented on GROOVY-7890:
------------------------------------------

confirmed and independent of @CompileStatic

> 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
>              Labels: features
>
> 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
(v6.3.4#6332)

Reply via email to