Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
groovy eclipse 1.6.3 + eclipse 3.4 + mac os x jvm 1.5
Description
'this" in two imbricated closures not resolved to method parameter.
The following test case fails :
@Category(Guy) class Filtering { List process() { this.messages.findAll{it.name != this.getName()} } } interface Guy { String getName() List getMessages() } class MyGuyver implements Guy { List messages String name } def onetest = new MyGuyver( name: 'coucou', messages : [['name':'coucou'], ['name':'test'], ['name':'salut']]) Guy.mixin Filtering assert onetest.process() == onetest.messages.findAll{it.name != onetest.getName()}