blob: 3108f324b72eebae955f748ab9fc91faa967740c [file] [log] [blame]
/**
* @version $Revision$
*/
class OverloadInvokeMethodBug extends GroovyTestCase {
void testBug() {
def a = new OverloadA()
a.duh()
def b = new OverloadB()
b.duh()
}
}
class OverloadA {
def invokeMethod(String name, Object args) {
try {
metaClass.invokeMethod(this, name, args)
} catch(MissingMethodException e) {
println "Missing method: ${name}"
}
}
}
class OverloadB extends OverloadA {
}