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/03/03 00:29:00 UTC
[jira] [Resolved] (GROOVY-6161) static method is not resolved
inside anonymous class
[ 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)