Issue 636 in google-gson: lenient flag ignored in JsonWriter#value(double)

3 views
Skip to first unread message

googl...@googlecode.com

unread,
Apr 2, 2015, 6:18:22 AM4/2/15
to google-gson...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 636 by konstant...@maxifier.com: lenient flag ignored in
JsonWriter#value(double)
https://code.google.com/p/google-gson/issues/detail?id=636

What steps will reproduce the problem?
1. new JsonWriter(writer)
2. setLenient(true)
3. value(new Double(Double.NaN)) // all fine
4. value(Double.NaN) // IllegalArgumentException

What is the expected output? What do you see instead?
value(Double.NaN) should be serialized as {prop: NaN}

What version of the product are you using? On what operating system?
2.3.1
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Ubuntu 12.04.5 LTS





--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages