[
https://issues.apache.org/jira/browse/GROOVY-6161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-6161.
---------------------------------
Resolution: Fixed
> static method is not resolved inside anonymous class
> -----------------------------------------------------
>
> Key: GROOVY-6161
> URL: https://issues.apache.org/jira/browse/GROOVY-6161
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 2.4.0-rc-1
> Reporter: Maxim Medvedev
> Priority: Major
>
> {code}
> class A {
> static def foo() {
> print "foo"
> }
> public static void main(String[] args) {
> new Runnable() {
> void run() {
> new Runnable() {
> void run() {
> foo() //foo() is not resolved
> }
> }.run()
> }
> }.run()
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)