blob: 0ec3cce6b68eb616e2dee58d52e3778f4e320085 [file] [log] [blame]
package groovy.bugs
/**
* @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 {
}