Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-1
-
Fix Version/s: 1.1-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
def methodWithDefaults(a,b,c=1000) {
a+b+c
}
assert methodWithDefaults([1,10,100]) == 111
assert methodWithDefaults([1,10]) == 1011
when executing this call the last call fails during method invocation, because MetaClassImpl cached the list version that maps to the method variant with 3 arguments, the last call has only 2 arguments so a different method should have been choosen, but that is not the case because the cached method is used
the caching for list expansions is removed now