abhisheksharma85 / gwtprojsonserializer

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

Enumeration deserialization broken #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

in most of cases a value of enumeration property fails to deserialize. Value is 
stored in json itself, but is missing (set to null) in resulting deserialized 
object. Other values (primitives, strings, lists) are being deserialized just 
fine.

What steps will reproduce the problem?
1. Send object having enumeration property(-ies) set to valid value (like for 
instance MyEnum.ITEM1) over the wire.
2. Gwtprojsonserializer fails to pickup value from json and translate value 
accordingly.
3. Experience null value at place where MyEnum.ITEM1 was expected.

Can't really find any pattern here. It's almost absurd: a very same enumeration 
type put at two places (properties named differently on the same object) and 
after deserialization attempt, one property gets deserialized while other comes 
out as null.

GWT 2.3
gwtprojsonserializer-1.0.4
gson-1.7.1

Tomas

Original issue reported on code.google.com by mr.tomas...@gmail.com on 17 Aug 2011 at 4:45

GoogleCodeExporter commented 8 years ago
The change for this is done now.

Original comment by bhea...@gmail.com on 7 Feb 2012 at 5:08

GoogleCodeExporter commented 8 years ago
Nice to hear, thanks!

Tomas

Original comment by mr.tomas...@gmail.com on 8 Feb 2012 at 8:17