I have exactly the same issue with post:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1b7e3851b943b130/2aa2077f4e6c90e1#2aa2077f4e6c90e1

I have used the Serializable solution but my code/library contains a
lot of Serializable classes as well... I really would like to avoid
this solution...
Is it not possible:
1. to implement the SerializationPolicy and add the class that are
Serializable.
2. define annotations in the RPC service with allowed Serializable
objects.

Fred

On Apr 15, 9:30 pm, Daniel Kurka <[email protected]> wrote:
> The problem is that the compiler will create the code for al objects in the
> classpath that implement serialiazable (which are more ore less 10000+).
> This results in enormous compile time and huge javascript...
>
> absolutely not doable
>
> any more suggestions?
>
> 2009/4/15 Salvador Diaz <[email protected]>
>
>
>
>
>
> > > perhaps can we use annotations like @gwt.typeArgs
>
> > Those are deprecated, you should really avoid using them
>
> > > >  a simple java class containing a Map<String,Object>
>
> > Can't you just use a Map<String, Serializable> ? If the map is going
> > to be travelling through RPCs you really shouldn't be putting objects
> > that don't implement Serializable into it.
>
> > Cheers,
>
> > Salvador
>
> > > > 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?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to