You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/12/19 19:35:00 UTC

[jira] [Assigned] (GROOVY-7890) Lack of compilation error while statically compiled the closure.

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

Eric Milles reassigned GROOVY-7890:
-----------------------------------

    Assignee: Eric Milles

> 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
>
> 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)