Rebinding com.gwt.core.client.RPCService
Invoking <generate-with
class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/
>
Analyzing serializability for 756 types
The following types were determined to be unserializable:
com.gwt.core.client.Record.1
Is local
com.gwt.core.client.Record.2
Thank you very much and have a nice day
Thank you very much and have a nice day.
On Aug 13, 4:20 pm, "saburo.ok...@gmail.com" <saburo.ok...@gmail.com>
wrote:
Closure myClosure = new Closure(){...};
You can extend the Closure interface, extending IsSerializable too:
interface SerializableClosure extends Closure, IsSerializable{}
Then, you can use SerializableClosure instead of Closure to
instantiate your anonymous class:
Closure myClosure = new SerializableClosure(){ .... }
I think this can work ;)
On 13 ago, 23:16, "saburo.ok...@gmail.com" <saburo.ok...@gmail.com>
wrote:
On 14 ago, 01:04, "saburo.ok...@gmail.com" <saburo.ok...@gmail.com>
wrote:
From this:
public class Foo {
public Interface aMethod() {
return new Interface() {
// blah blah
};
}
}
To this:
public class Foo {
public static final class InterfaceImpl implements Interface {
// blah blah
}
public Interface aMethod() {
return new InterfaceImpl();
}
}
?
If you make the named class an inner class, it has to be a static
class or the compiler will generate an error that it's not
serializable.
Ian
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
But nevermind, I guess implementing the classes themselves explicitly
is the only way for resolving this problem.
Thanks a lot guys ! ~(_8^(I)