pascallouisperez / jsonmarshaller

JsonMarshaller is a Java 1.5 library that allows marshalling and unmarshalling of JSON objects to and from entities ("Java classes").
Apache License 2.0
1 stars 0 forks source link

ClassCastException when unmarshalling a Boolean that is null #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to unmarshall a Boolean object, if this object is set to null,
a ClassCastEception is thrown.
In the class BooleanDescriptor a check on JSONObject.NULL as given object
is missing.
I made a patch, that fixes the problem.

Original issue reported on code.google.com by Kiefha...@googlemail.com on 3 Jun 2008 at 2:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch, I'll commit this to the trunk asap.

Original comment by pascallo...@gmail.com on 4 Jun 2008 at 6:08

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/jsonmarshaller/source/detail?r=39

Original comment by pascallo...@gmail.com on 14 Dec 2008 at 6:22