Hi,
Your class has to implement the interface
com.google.gwt.user.client.rpc.IsSerializable and you have to add a
free-parameters constructor as is :
public class MyClass implements IsSerializable{
public MyClass(){
...
}
}
Maybe this default constructor misses ?
Regards
Damien Picard.
2009/2/8 marcelstoer <[email protected]>
>
> My *Async interface contains the following method signature:
>
> void reportsAvailableFor(Class<? extends AbstractRow> rowClass,
> AsyncCallback<Boolean> callback);
>
> The method signature in the application i.e. Servlet interface
> likewise looks like:
>
> Boolean reportsAvailableFor(Class<? extends AbstractRow> rowClass);
>
> The GWT shell complains at startup that:
>
> [ERROR] Type 'java.lang.Class<? extends
> ch.netcetera.eveni.client.model.table.AbstractRow>' was not
> serializable and has no concrete serializable subtypes
>
> At that point I thought that GWT had an issue with the Generics
> parameter. Hence, I removed the restrictive "<? extends AbstractRow>"
> suffix from the Class type, but GWT still complains about:
>
> "'java.lang.Class' was not serializable and has no concrete
> serializable subtypes"
>
> Now this is definitely bogus IMO as java.lang.Class<T> clearly states
> "implements java.io.Serializable" - and yes, I'm using GWT 1.5.3.
>
> Marcel
>
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---