discomarathon / google-gson

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

Please add support for nesting hierarchical type adapters. #332

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to add hierarchical type adapters for types like Iterable, 
ImmutableList, ImmutableSet, ImmutableMap, etc.  But that isn't currently 
possible because registerTypeHierarchyAdapter generates an error saying nesting 
of this kind isn't allowed.

This doesn't seem too hard to change and will make this feature much more 
useful.

Original issue reported on code.google.com by c...@google.com on 17 Jun 2011 at 10:06

GoogleCodeExporter commented 9 years ago
You can do this in Gson 2.1 with TypeAdapterFactory.

Original comment by limpbizkit on 29 Dec 2011 at 5:57