discomarathon / google-gson

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

Gson support for classes parameterized with enums #242

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://groups.google.com/group/google-gson/browse_thread/thread/2d490f16c0b3f639

The link above provides a reproducible test case as well.

Original issue reported on code.google.com by inder123 on 27 Sep 2010 at 5:53

GoogleCodeExporter commented 9 years ago
I've investigated this. Everything works if GSON has the type information that 
it needs. For example, if it is deserializing into the enum-typed field, it 
finds it and then finds the type adapter.

But if it has to use the runtime type, it doesn't find the type adapter. And so 
it doesn't use the custom serialization.

Original comment by limpbizkit on 3 Nov 2010 at 3:53

GoogleCodeExporter commented 9 years ago
This is related to issue 164.

Original comment by limpbizkit on 3 Nov 2010 at 4:03

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 3 Nov 2010 at 4:18

GoogleCodeExporter commented 9 years ago
Test written in r769 shows that this is no longer an issue.

Original comment by joel.leitch@gmail.com on 4 Apr 2011 at 7:21