discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Use String.valueOf() for numeric and boolean types #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, if gson tries to convert a JSON integer into a String, it just
tries casting, which throws an exception.  It should be smart enough to use
String.valueOf() for numeric and boolean types.

See discussion
http://groups.google.com/group/google-gson/browse_thread/thread/86e023adede4394c
#
for more info.

Original issue reported on code.google.com by tobini...@gmail.com on 9 Jan 2009 at 1:46

GoogleCodeExporter commented 9 years ago
Fixed submitted in r328.

Original comment by joel.leitch@gmail.com on 9 Jan 2009 at 7:28