Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 6.06 LTS "Dapper Drake" + JDK 1.5.0_06 + Groovy r 4109
-
Number of attachments :
Description
The script:
a = 1 a.b = 2
correctly fails with a "no such field b for class Integer". However the script:
c = { }
c.b = 3
println ( c.b )
println ( b )
prints:
3
3
which has to be wrong on 2 fronts: a closure doesn't have a property b; setting c.b should not create an entry b in the binding.
John agreed this should almost certainly be treated as a bug.
Issue Links
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-