Closed GoogleCodeExporter closed 8 years ago
Your problem here is that you don't register the TypeConverter in the JSON
generator.
So the date gets treated like a normal bean on generation and then the
typeconverter
that you registered fails to parse that. If you register it in the generator,
too,
your example works
(
http://code.google.com/p/jcouchdb/source/browse/trunk/test/org/jcouchdb/db/TypeC
onverterPropagationTestCase.java
)
I think there's also some weird behaviour with type converters at play here,
hidden
beneath the surface.. The type converters registered by registerTypeConversion
behave
differently from those added via a typeconverter-repository, because the former
are
only active "after-the-fact", just being used to convert strange primitive
values.
(like String -> Date).
I will have to think about how to improve that.
Original comment by ff...@gmx.de
on 3 Mar 2010 at 11:16
Thanks for checking this out! I will have another try.
Original comment by stefan.u...@gmail.com
on 4 Mar 2010 at 7:10
Original issue reported on code.google.com by
stefan.u...@gmail.com
on 26 Feb 2010 at 2:29