[
https://issues.apache.org/jira/browse/GROOVY-11855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-11855.
----------------------------------
Fix Version/s: 5.0.5
Resolution: Fixed
https://github.com/apache/groovy/commit/3015f5e5cc7b2e27ed581ccfa7a88b23ba03c83c
> Access to outer class static members for inner interface
> --------------------------------------------------------
>
> Key: GROOVY-11855
> URL: https://issues.apache.org/jira/browse/GROOVY-11855
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 5.0.4
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 5.0.5
>
>
> Consider the following:
> {code:groovy}
> class Outer {
> interface Inner {
> default i() {
> 'i' + o
> }
> }
> private static o = 'o'
> }
> {code}
> or
> {code:groovy}
> class Outer {
> interface Inner {
> default i() {
> 'i' + o()
> }
> }
> private static o() { 'o' }
> }
> {code}
> Access to field "o" or method "o()" should be possible since the members are
> static. At this time, both result in missing member exceptions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)