[
https://issues.apache.org/jira/browse/GROOVY-11877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-11877.
----------------------------------
Fix Version/s: 5.0.5
Resolution: Fixed
https://github.com/apache/groovy/commit/2cb02e9b4e76fb06cdb57521be7ccb7c7036d2f2
> anon. inner class is never static
> ---------------------------------
>
> Key: GROOVY-11877
> URL: https://issues.apache.org/jira/browse/GROOVY-11877
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 5.0.5
>
>
> Consider the following:
> {code:groovy}
> interface I {
> def foo = new Object() {}
> }
> {code}
> The anon. inner class I$1 is static because it is within an interface.
> However, JLS 15.9.5 states "An anonymous class is always an inner class".
> And JLS 8.1.3 further states "An inner class is a nested class that is not
> explicitly or implicitly static."
--
This message was sent by Atlassian Jira
(v8.20.10#820010)