If you look at the Class.java that GWT uses to emulate the JVM's Class,
you'll see that it does not implement Serializable.
On 13/12/10 22:19, yves wrote:
Hi,
I have a class defined in a way similar to this:
class MyType<T extends MyGen> extends Serializable {
private Class<T> aClass;
public MyType() {}
public void setClass(Class<T> aClass) {
this.aClass = aClass;
}
}
where MyGen is also Serializable
When I compile de project (I'am currently still using GWT 2.1.0 RC1),
then I find the following :
1) the compiler (using the compiler options -extra, -work and -gen)
does not generate the code MyType_FieldSerializer.java as it does for
all other serializable classes.
2) In the "extra" / rpclog dir, the class MyType is flagged like this:
Serialization status
Not serializable
3) And when I run my app, I get an "InvocationException" : the client
is unable to make an RPC call with a parameter of type MyType.
Is it a bug in the compiler, or did I missed something about Class<T>
"serializability" ?
Thanks for your help
Yves
--
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.