Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.7, 1.6-rc-1
-
None
-
None
Description
Somehow Groovy is calling some formatting method rather than String.valueOf(Object) for:
String.valueOf(new BigInteger('1000'))
You can see the difference with:
assert (String.valueOf(new BigInteger('1000'))) == (new BigInteger('1000').toString())
which is a good test because String.valueOf(Object) is defined to be the same as String.toString() if the object is not null.
Attachments
Attachments
Issue Links
- is depended upon by
-
GROOVY-3237 println is inconsistent
- Closed