Mariusz W: > class Boo { > def boo() {throw new UnsupportedOperationException("should override")} > def foo() { println "foo"} > } > > def a = [boo : { > foo() > }] as Boo > > a.boo()
As far as I can see (which is not a great distance away from my nose), you are trying to construct an object with the boo() method redefined to call the foo() method of the parent class. I believe your code is incorrect at least becuause the foo() method is unavailable at the point of construction. You cannot refer to the method of an object that has not yet been constructed.