I have the same issue with an RPC service witch return a List<Object>... The compiler does not find the type of elements that could be included in the list... As a workarround i'm obliged to create dummy methods using the classes that could be included in the list...
I would like to know how to extend the SerializationPolicy (whiteList...) ?? perhaps can we use annotations like @gwt.typeArgs On 14 avr, 16:36, Daniel Kurka <[email protected]> wrote: > For data transport we use a simple java class containing a Map<String, > Object> This map is transient and we serialize it with a custom field > serializer. This works fine for most situations. > > For every service gwt has a list of classes which can be Serialized > (whitelist). If my understanding is right this list is generated by the > compiler at compile time by analizing the members of a class. > > But we can have classes (which ARE serializable) inside our transient map, > but gwt will not serialize this classes because of the SerializationPolicy > (these classes could not be found by the compiler at compile time). > > Is there any way to extend the white list of SerializationPolicy.java ? > > If I add all classes as private members to my class the members are found > and the class can be serialized, but this is anoying and we cant do this for > all classes (we dynamically decide which classes we need to transfer) > > Anyone got any expierence with that? > > Maybe open an issue about this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
