Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6-rc-1
-
Fix Version/s: 1.6-rc-2
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
In Groovy code, the toString() method does not produce a Groovy formatted string for Map or Collection.
The problem is that the toString(Map) and toString(Collection) methods can't work because they're declared on interfaces and DGM methods must be declared on an implementation class in order to be dispatched.
Fix applied to trunk (cs14814).
The solution is that those DGM methods are declared as toString(AbstractMap) and toString(AbstractCollection).
Folks who implement their own classes from scratch are on their own.