isackrubio / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

GWT RPC Serialization Issues #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've seen this mentioned as perhaps not being a problem, but I'm finding it as 
one.

I'm trying to pass objects that extend Appointment via a GWT RPC calls using 
GWT 2.4.0.  I'm finding that both the AppointmentStyle.java and Attending.java 
enumerations cause runtime errors (see attached) during serialization of the 
objects.

I've been able to work around this by incorporating copies of these classes 
that simply implement IsSerializable and ensuring my jar's version overwrites 
gwt-cal's.

Adding IsSerializable to the default definitions of these to an upcoming 
version gwt-cal would be greatly appreciated.

Thanks!

Original issue reported on code.google.com by drfoste...@gmail.com on 5 Jun 2012 at 6:23

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Dennis,

If you already have some code that works properly. I'll be happy to apply the 
changes to the source code. I see there are some tricks to implement 
Serializable Enums with GWT.

Original comment by ctasada on 11 Jun 2012 at 8:54

GoogleCodeExporter commented 9 years ago
All I did was add "implements IsSerializable" to the two enum types I mentioned 
(and included the appropriate import.)  Everything worked (i.e., serialized) 
with that change.

Original comment by drfoste...@gmail.com on 12 Jun 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Implemented in r414

Original comment by ctasada on 12 Jun 2012 at 8:05

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by drfoste...@gmail.com on 12 Jun 2012 at 8:44