Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.6.2
-
None
Description
The following works...
class T { def doIt() { true } } def t = new T() assert t.doIt() t.metaClass.doIt = { -> false } assert !t.doIt()
But this fails...
interface I { def doIt() } class T implements I { def doIt() { true } } def t = new T() assert t.doIt() t.metaClass.doIt = { -> false } assert !t.doIt()
Attachments
Issue Links
- is duplicated by
-
GROOVY-4210 String(Buffer|Builder).metaClass.toString ignored
-
- Closed
-