rithyskun / google-gson

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

Problem Serialize De-serialize: List of Objects that contain Abstract types ! #529

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. classes Animals, Dog extends Animals, Cat extends Animals,
Box (with two fields Animals, String)

2. Create a list with Boxes and add Boxes with Dogs and Cats

3. Serialize and De-serialize and view the list 

What is the expected output? What do you see instead?
Expected: A list with boxes with dogs and cats.
Instead: A list with boxes with animals.

What version of the product are you using? On what operating system?
Gson 2.2.4, Linux Mint 13 Maya

Please provide any additional information below.

Original issue reported on code.google.com by totolici...@gmail.com on 9 Aug 2013 at 7:42