Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.6-rc-2, 1.5.8, 1.7-beta-1
-
Component/s: None
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
println "money proxy with method access : ${moneyProxy {1.euro() + 2.euro()}}"
this method prints null where I would expect it printed result of the closure.
moneyProxy is a static method which calls the ProxyMetaClass.use method ...
attached a patch...
These PMC#use() methods are used in MockFor and StubFor.
Shouldn't the patch also affect the use() method available on MockFor and StubFor?
And provide an example test as well.