【发布时间】:2016-01-15 06:02:27
【问题描述】:
是否可以像中那样调用methodTwo()
def map = [methodOne: { return "${methodTwo()}" }, methodTwo: { return "Hey" }] as MyInterface
groovy 在运行时找不到methodTwo(似乎它正在定义映射的类中搜索其定义)
【问题讨论】:
-
发布
MyInterface代码和您遇到的错误。
标签: methods groovy interface closures