Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.2
-
None
Description
If a class has multiple versions of a setter method that each take a different parameter type the assignment operator will always dispatch to the last declared one regardless of the type of the right hand side of the assignment expression. This is also true if the setter methods are added using the meta class.
A longer explanation with a couple of examples is here: http://blog.freeside.co/post/46597838031/groovy-gotchas-overloading-the-assignment-operator