Thank you, I will definatly consider this!
greets On 8 Mai, 17:53, Tony Strauss <[email protected]> wrote: > The problem with your code is that java.lang.Class *cannot* be > transmitted over GWT RPC. > See:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > for a full description of the issue. > > On a side note, you might want to reconsider doing something like: > <T extends IsSerializable, Serializable> List<T> get(...) > > This will force the GWT compiler to generate code to serialize/ > unserialize every type that implements Serializable, which will bloat > your application as there are many such types. You're better off > constraining the types used in your RPC interfaces to what actually > will be used. > > Tony > -- > Tony Strauss > Designing Patterns, > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com > > On May 8, 4:41 am, kleinerroemer <[email protected]> > wrote: > > > Hey guys! > > > I ran into the following problem: > > > my RemoteService class has the following method: > > > <T extends IsSerializable, Serializable> List<T> get( Class<T> cls ); > > > AsyncService: > > > <T extends IsSerializable, Serializable> void get( Class<T> cls, > > AsyncCallback<List<T>> callback); > > > I'm calling the method with a class which directly inherits > > Serializable and IsSerializable, and it also has a default > > constructor! > > > I'm using gwt 1.5.3 > > > When I try to run the application the error: > > > Parameter: java.lang.Class<T> cls > > java.lang.Class<T> > > [ERROR] Type 'java.lang.Class<T>' was > > not serializable and has no concrete serializable subtypes > > > comes up, and the build fails.... > > > Is this another bug, since this kind of problems have already occured > > in previous releases of gwt, or am I doing something wrong..?!? > > > thanks in advance > > > greets! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
