Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-beta-1
-
None
-
None
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