I always implement IsSerializable: - your intention is more clear (Serializable for GWT) - I also noticed Serializable does not always work - you do not have the restrictions of Serializable (serialVersionUID, public non-arg ctor)
So, to answer your questing: No. Support for Serializable is just added for convenience I suppose. Regards, Ronald On Jan 27, 3:38 pm, Alexander <[email protected]> wrote: > Yep, +1. > > Anyone have ideas? > > 2010/1/17 dans <[email protected]> > > > > > > > We experienced the same behavior (albeit with GWT 1.5). > > > Dan > > > On Jan 17, 1:25 am, Paul Grenyer <[email protected]> wrote: > > > Hi All > > > > I was under the impression that IsSerializable was depreciated in > > > favor of Serializable. However, I've just created a new exception > > > type: > > > > package uk.co.marauder.usermanager.client; > > > > import com.google.gwt.user.client.rpc.IsSerializable; > > > > public class ServerSideException extends RuntimeException implements > > > IsSerializable > > > { > > > private static final long serialVersionUID = > > -1005766244333245684L; > > > > @SuppressWarnings("unused") > > > private ServerSideException() > > > {} > > > > public ServerSideException(Throwable t) > > > { > > > super(t); > > > } > > > > } > > > > and it won't serialize across the RPC boundry unless it implements > > > IsSerializable, Serializable doesn't work. > > > > -- > > > Thanks > > > Paul > > > > Paul Grenyer > > > e: [email protected] > > > b: paulgrenyer.blogspot.com > > > -- > > 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]<google-web-toolkit%2Bunsubs > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Regards, > Alexander -- 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.
