abhisheksharma85 / gwtprojsonserializer

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

Serializing collections without type erasure java.lang.Object possible? #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Serializing collections with type erasure java.lang.Object does not seem to be 
possible, i.e. the generated string does contain the field name but it does not 
contain the contents of the collection.
It is also not possible if the type erasure is omitted completely but in this 
case, a
     [java] java.lang.ClassCastException: com.google.gwt.core.ext.typeinfo.JRawType cannot be cast to com.google.gwt.core.ext.typeinfo.JParameterizedType
     [java]     at com.kfuntak.gwt.json.serialization.SerializationGenerator.generateTypeSerialization(SerializationGenerator.java:525)
is thrown.
So I'd suggest to add either an exception for the first case (type erasure is 
Object), or, to implement this feature (if possible at all).

Version is 1.02.

Original issue reported on code.google.com by pa...@gmx.net on 18 Oct 2010 at 11:04