Abydars / google-gson

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

Error desirialization of ConcurrentNavigableMap #624

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create POJO with filled ConcurrentNavigableMap field
2. Sirialize to json string
3. Desirialize from json string

What is the expected output? What do you see instead?
Original state is expected. IllegalArgumentException is thrown

What version of the product are you using? On what operating system?
Gson 2.3.1, java 8, windows 7

Please provide any additional information below.
Gson works only with class type field such as ConcurrentSkipListMap.
Good programming style is using interface type such as ConcurrentNavigableMap. 
See attach for log and unit-test

Original issue reported on code.google.com by dkhomya...@gmail.com on 29 Jan 2015 at 8:34

Attachments: