Thursday, October 1, 2015

GWT and CustomFieldSerializer

Hi,

Can someone give me a bit inside on the process of Serialize. 

I have a multiple inheritance, 

class A {}

class B extends A{}

class C extend B{}


then I want to create a CustomFieldSerializer for A. I added A_CustomFieldSerializer.class inside the pakage, but when I try to compile I get 

     [ERROR] Line 12: The method deserialize(SerializationStreamReader, B) is undefined for the type A_CustomFieldSerializer
               [ERROR] Line 17: The method serialize(SerializationStreamWriter, B) is undefined for the type A_CustomFieldSerializer
         [ERROR] Hint: Check that the type name 'xxxx.B_FieldSerializer' is really what you meant 


do I really have to add a CustomFieldSerializer for all of the subclasses?



What I really want to get is to not transfer any data from class A, I dont need any info from that class...



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment