Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.4
-
None
-
None
Description
The following script:
class Test { void setProperty(String name, value) { println "instanceSetProperty" } void myMeth() { println 'instanceMyMeth' } } Test.metaClass.setProperty = { String name, value -> println 'metaSetProperty' } Test.metaClass.myMeth = { -> println 'metaMyMeth' } Test test = new Test() test.a = 'b' test.myMeth()
yields:
instanceSetProperty
metaMyMeth
The setProperty method added via the metaclass is ignored.
Attachments
Issue Links
- depends upon
-
GROOVY-2503 MOP 2.0 design inflluencing issues
- Open