Closed devdevx closed 5 years ago
I'm not sure, but it seems to me that com.fasterxml.jackson.datatype.jsr310.deser.YearDeserializer
shoud extend JSR310DateTimeDeserializerBase
to use the custom pattern. What do you think?
Ok, so: added tests in 2.10 for all 3 modules, and fixed 2 to be serializable (datatypes, i.e "optionals", parameter names), but jsr310 (date/time) is trickier case. Problem here is that although everything else is or can be made serializable. Java 8 DateTimeFormatter
isn't. And although theoretically it is of course possible to work around this that may not be practical.
For 3.0 (master
) I can change things so that Module
is serializable, but I am not super confident about 2.x. Leaving open for now, regardless.
I think I re-opened wrong issue. Closing.
Jackson version: 2.9.3 Jackson datatype version: 2.9.6
Example of the
@JsonFormat
definition:Test example:
Possibly related to: https://github.com/FasterXML/jackson-modules-java8/issues/51
Stack trace: