abhijeetjais20 / google-gson

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

TypeAdapters for Map<String,Object> are ignored #503

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Please find a test project attached. It contains two files - 
NumberTypeAdapterMain and ObjectTypeAdapterMain
2. NumberTypeAdaterMain works as expected. The example is taken from 
http://code.google.com/p/google-gson/issues/detail?id=45
3. The example in ObjectTypeAdaterMain is a modified version of 
NumberTypeAdapter where the value type of the Map is Object instead of Number. 

What is the expected output? What do you see instead?

When executing ObjectTypeAdapterMain, I would expected that the 
ObjectTypeAdapter is invoked, which is not the case

What version of the product are you using? On what operating system?

GSON-2.2.2, Java 7

Please provide any additional information below.

Original issue reported on code.google.com by marcozap...@gmail.com on 20 Feb 2013 at 9:15

Attachments: