Open GoogleCodeExporter opened 9 years ago
Is this still an issue. Did u try it in 2.2.4?
Its working for me on Windows with GSON 2.2.4
Original comment by haripr...@gmail.com
on 3 Aug 2013 at 1:22
Hari,
Yes it is. I've just tested with Gson 2.2.4 on Fedora 19, 64 bit with OpenJDK
64-Bit Server VM (build 23.7-b01, mixed mode).
Original comment by haibison...@gmail.com
on 4 Aug 2013 at 11:35
Apparently, if you have a default constructor for the class, it will work as
you like.
public Test() { }
and that should be enough for the instance variables to be initialized as
declared.
Original comment by krt...@gmail.com
on 22 Nov 2013 at 1:12
@krt...
Thanks for your help. Unfortunately it's not working. I still got "x=[0]
s=[null]". Gson v2.2.4.
Original comment by haibison...@gmail.com
on 22 Nov 2013 at 7:28
Confirm, this is still not working.
No way to assign default values for fields.
If field is missing in JSON it is deserialized as null.
Gson v2.2.4
Original comment by kamui.ji...@gmail.com
on 31 Jan 2014 at 7:16
This is most probably related to issue 495, see the links in the posting from
Jun 23, 2013.
Original comment by Maaarti...@gmail.com
on 2 Feb 2014 at 12:32
Original issue reported on code.google.com by
haibison...@gmail.com
on 5 May 2013 at 8:23