Closed GoogleCodeExporter closed 9 years ago
Sorry, seems to be an issue with my build process, that test started passing
again. Failed on both my machine and the build server, but it was spurious,
sorry for the noise.
Original comment by tedj...@gmail.com
on 3 Aug 2011 at 9:23
I pulled it together in one test case, it's registerTypeHierarchyAdapter which
can't be used for Date. I'ld unpost the bug if I could, but I can't, so here is
a test case that exercises it.
Original comment by tedj...@gmail.com
on 3 Aug 2011 at 9:36
Attachments:
So registerTypeHierarchyAdapter isn't working on Date.class? Sounds like it
could be a real problem.
Original comment by limpbizkit
on 4 Aug 2011 at 6:43
No, you can't registerTypeHiearchyAdapter on Date.class. Try the test case. I'm
not sure what intended behavior would be, but because there is an implicit
adapter added specifically for Date.class in the GsonBuilder regardless of
whether or not you call .setDateFormat, you can't register a hiearchy adapter.
This may be an issue if you use javax.sql.Date.
Original comment by tedj...@gmail.com
on 5 Aug 2011 at 3:09
it's a problem. you can just not serialize date to a long value
Original comment by chenzhikong@gmail.com
on 5 Sep 2011 at 3:43
[deleted comment]
This issue was closed by revision r1097.
Original comment by limpbizkit
on 29 Dec 2011 at 7:27
Fixed in Gson 2.1.
Original comment by limpbizkit
on 29 Dec 2011 at 7:27
Still seeing this in Gson 2.2.4.
Original comment by Guy.Padd...@gmail.com
on 28 Sep 2013 at 8:55
[deleted comment]
I'm still observing that in Gson 2.3.
Original comment by tobo...@gmail.com
on 17 Dec 2014 at 12:49
Original issue reported on code.google.com by
tedj...@gmail.com
on 3 Aug 2011 at 9:17