let's say we have a class, just a simple bean like this:
public class SimpleBean implements IsSerializable, Serializable {
...
}
it implements IsSerializable because it is a client bean used by GWT
application, but at the same time it implements the normal
Serializable interface because it is coming from a pure Java
FileStream, I/O, etc.
of course GWT compiler doesn't know Serializable and this is bad code.
On the other hand, from a formal point of view, this could be no
mistake cause both interfaces are just marker (tags) used by the
serializable engines to check compile/runtime wether a class is
serializable.
Couldn't be possible to make them "compatible" in some sort of way?
maybe making the GWT tag to extend the Java one:
public interface IsSerializable extends Serializable { }
in this way it would be possible to fetch a serialized bean from a
stream and, without any modification, send it to the client side of a
GWT app.
or maybe I'm talking nonsense and there is an easier way to do this :)
Thanks
Travis