Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5.4
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
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.
Issue Links
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.5.5 [ 14028 ] | |
| Fix Version/s | 2.0 [ 13489 ] |
blackdrag blackdrag
made changes -
| Link | This issue depends upon GROOVY-2503 [ GROOVY-2503 ] |
blackdrag blackdrag
made changes -
| Parent | GROOVY-2503 [ 61571 ] | |
| Issue Type | Bug [ 1 ] | Sub-task [ 7 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 3.0 [ 13489 ] |