Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.6.2
-
Fix Version/s: 1.8.x
-
Component/s: None
-
Labels:None
-
Number of attachments :
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()
Issue Links
- is duplicated by
-
GROOVY-4210
String(Buffer|Builder).metaClass.toString ignored
-
Activity
Roshan Dawrani
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue is duplicated by |
Graeme Rocher
made changes -
| Fix Version/s | 1.8.x [ 15750 ] |
I can also reproduce this at Mac OS x with Groovy Version: 1.6.3 and JVM: 1.6.0_13 installed