Writing client code, you have to use classes supported by GWT JRE Emulation:
http://code.google.com/intl/es/webtoolkit/doc/1.6/RefJreEmulation.html. So
you have to use only these classes in serializable objects that are used in
both the client and server sides. Unfortunately java.lang.Thread is not
supported so you can not use it.

On Fri, Jul 17, 2009 at 10:38 PM, Srinivas Ramabhadran <
[email protected]> wrote:

>
> Hi,
>
>   I am relatively new to GWT and am trying to define a user defined
> serialiable type Foo in order to do GWT RPC.
>
>   public class Foo implements IsSerializable {
>        private String foo;
>        private transient Thread thread;
>
>        public Foo() {
>        }
>
>        public String getFoo() {
>
>                return foo;
>        }
>
>        public void setFoo(String foo) {
>                this.foo = foo;
>        }
>  }
>
> When I try to run this in a GWT module, I get the error:
>
> [ERROR] No source code is available for type java.lang.Thread; did you
> forget to inherit a required module?
>
> Why is GWT even bothering with the Thread field when it has been
> marked transient? Am I missing something here?
>
> Thanks,
> Srini.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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