guochaiqi / google-gson

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

Incorrect serialisation for sub classed objects #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extract the Containers.zip maven project attached.
2. Run the BookingDialogViewJsonSerializerTest.java JUnit test to observe the 
issue.

What is the expected output? What do you see instead?
I'm trying to serialise a nested object. The object serialises fine when not 
nested. When nested only fields on the base class are serialised, fields on the 
subclasses are omitted.

What version of the product are you using? On what operating system?
2.3.2 on win xp.

Please provide any additional information below.

Original issue reported on code.google.com by proggerp...@gmail.com on 20 Sep 2010 at 7:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 6 Oct 2010 at 5:49