Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.6
-
None
-
None
Description
playground.groovy
class C { def call() { 42 } } class Container { static final staticC = new C() def instanceC = new C() } assert Container.staticC() == 42 // works fine def container = new Container() assert container.staticC() == 42 // MissingMethodException assert container.instanceC() == 42 // MissingMethodException
I'd expect the invocations to fail or to work in both static and instance contexts.