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.
Activity
Jim White
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jim White [ jimwhite ] |
Jim White
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Jim White
made changes -
| Attachment | patch-tostring-public.txt [ 39154 ] |
Jim White
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Jim White
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Jim White
made changes -
| Status | Reopened [ 4 ] | In Progress [ 3 ] |
Jim White
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
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.