Closed GoogleCodeExporter closed 9 years ago
Sorry, but I do not fully understand the requirements for this new PreSerialize
annotation.
This could done similar to the PostCreate (Issue #144) or it could be done with
a
TypeConverter where you can do some special behaviour and than use the
SerializationContext and serialize this (Issue #43).
Original comment by joel.leitch@gmail.com
on 10 Oct 2009 at 4:17
I can't find @PostCreate,I think it's for deserialization not serialization
TypeConverter need exact class
registerTypeAdapter(Foo.class, new FooTypeAdapter()) doesn't works for subclass
of Foo
it must be
registerTypeAdapter(ChildOfFoo.class, new
FooTypeAdapter()).registerTypeAdapter(Child2OfFoo.class, new
FooTypeAdapter()).registerTypeAdapter(Child3OfFoo.class, new
FooTypeAdapter())....
Original comment by zhouyanm...@gmail.com
on 10 Oct 2009 at 6:40
I have a patch,please see
http://code.google.com/p/google-gson/issues/detail?id=164
Original comment by zhouyanm...@gmail.com
on 10 Oct 2009 at 6:58
Original comment by inder123
on 3 Nov 2010 at 12:29
Let's fix issue 164 instead.
Original comment by limpbizkit
on 3 Nov 2010 at 5:30
Original issue reported on code.google.com by
zhouyanm...@gmail.com
on 10 Oct 2009 at 2:50