discomarathon / google-gson

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

Binding should optionally fail on an unrecognized property name #262

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create simple Bean.
2. Generate Json from exited Bean.
3. Modify in the generated Json field name
4. Build (fromJson) Bean from modified Json.

What is the expected output? What do you see instead?
Should be JsonParseException instead of full ignore.

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

Please provide any additional information below.
Look at attached example.

Original issue reported on code.google.com by mst...@gmail.com on 8 Nov 2010 at 4:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 30 Dec 2011 at 6:23

GoogleCodeExporter commented 9 years ago
Issue 188 can do this, and it's also more general.

Original comment by limpbizkit on 30 Dec 2011 at 6:38