-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalDateTime
serialization issue with custom-configured LocalDateTimeSerializer
#288
Comments
Ok, first of all: thank you for reporting this issue. Second of all: I would highly recommend NOT constructing (de)serializers directly but letting
But be that as it may, the way you do things should also work. |
Hello. I replaced the code as you replied above and confirmed that it works fine. Thanks. Have a nice day. 👍 |
@mklinkj Great! I will still see if I can resolve the problem itself, but I am glad you were able to work around that. |
Ok, I can see why this happens: 2.16 changed registration of (de)serializers in a way that would ignore anything added via I'll have to think of how to change this; it should be doable, just not trivially simple. |
LocalDateTime
serialization issue with custom-configured LocalDateTimeSerializer
Was quite simple in the end, fixed for 2.16.1. I assume there will be other reports for other custom registrations. |
And there is at least #293. |
Hello. I have confirmed that the method I used before also works well in the 2.16.1-SNAPSHOT version. Thanks. Have a nice day. 👍 |
Thank you for confirming @mklinkj ! |
Hey @cowtowncoder , would you mind sharing what is the intended way of registering custom de/serializers for example for |
@mdindoffer Ok, two pointers:
So the only concern is that the fact that I hope this clarifies matters. |
@cowtowncoder OK, so would you accept a PR that marks the methods as |
The problem is that methods come from From my perspective deprecation is no longer necessary as usage is supported (even if not recommended), including regression test verifying functioning (ability to register custom (de)serializers). |
Hello.
There was no problem specifying the date format up to version 2.15.3, but it seems like it’s not applied in version 2.16.0
Example Project (v2.15.3)
Example Project Zip File (v2.15.3)
Where to change version
ObjectMapper Setting
Run in Jackson 2.15.3
Run in Jackson 2.16.0
I think it might be due to my incorrect settings… Anyway, I’ve shared it
Thank you, Have a nice day 👍
The text was updated successfully, but these errors were encountered: