discomarathon / google-gson

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

Gson should support null values for primitive wrapper types #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See thread
http://groups.google.com/group/google-gson/browse_thread/thread/8418964267ace8f1

Original issue reported on code.google.com by inder123 on 30 Oct 2008 at 1:31

GoogleCodeExporter commented 9 years ago
Added tests in r280 that serialize and deserialize null fields that are wrapped
primitive types (Long). The tests pass so I am closing this bug.

Original comment by inder123 on 30 Oct 2008 at 1:48

GoogleCodeExporter commented 9 years ago
The real issue is that a custom type adapter registered for a primitive type is 
not
invoked. I verified the bug in a test in r281

We need to think through the use-cases of registering a custom type adapter for
primitive types before we implement this.

Original comment by inder123 on 30 Oct 2008 at 6:28

GoogleCodeExporter commented 9 years ago
Fixed in r282 by providing support to override default type adapters for 
primitive types.

Original comment by inder123 on 31 Oct 2008 at 12:20