Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-RC-1
-
Fix Version/s: 1.8.1, 1.9-beta-1, 1.7.11
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The error message for MissingMethodException includes the values of the arguments. When the arguments are large (e.g. a big array), this can cause an out of memory exception, e.g. when converting a large array to a collection as the first step of converting it to a string. It would be great if e.g. it only printed the first, say, 10 elements of a collection, then added "...".
Intended solution is to remove the values or just print the class/hashcode as per normal Java toString(). Check with Peter regarding whether Spock uses this feature.