title: Groovy methodMissing
body: <p>I have a closure within an object <em>Foo</em> and inside the closure i define a method called '<em>myStaticMethod</em>' that I want to resolve once the closure is called outside the object <em>Foo</em>.  I also happen to have 'on purpose' a static method within my object Foo with the same name. When I call the closure i set the 'resolve strategy' to DELEGATE_ONLY to intercept the call to <em>myStaticMethod</em> that is defined within the closure. </p>
  
  <p>I tried to achieve that through <em>missingMethod</em> but the method is never intercepted. When i make the Foo.<em>myStaticMethod</em> non static, the method is intercepted. I don't quite understand why this is happening though my resolve strategy is set to DELEGATE_ONLY. having the <em>Foo.myStaticMethod</em> static or not shouldn't matter or I am missing something</p>
  
  <pre><code>class Foo {
     static myclosure = {
         myStaticMethod()
     }
  
     static def myStaticMethod() {}
  }
  
  
  class FooTest {
    def c = Foo.myclosure
    c.resolveStrategy = Closure.DELEGATE_ONLY
    c.call()
  
    def missingMethod(String name, def args) {
      println $name
    }
  }
  </code></pre>