-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
@JsonDeserialize on Map with contentUsing custom deserializer overwrites default behavior #735
Comments
Ok, yes. It is due to #604 as well. Looks like checks to prevent incorrect caching were still not strict enough. I will probably release 2.4.5.1 "micro-patch" of just |
….5.x additions) Conflicts: release-notes/VERSION src/test/java/com/fasterxml/jackson/databind/deser/TestCustomDeserializers.java
I just released |
Thank you for the quick resultion! |
Thank you for reporting this! I need to do bit more work on 2.5 to ensure other cases are not affected, since |
After fixing part of the problem (which resolved the unit test failure), I added some more variants, and found out that there is another problematic sequence. Will try to address that. Reopening for additional work. |
Ok: fixed completely (as far as I know) for 2.4.6 and 2.5.2. |
The jackson implementation provided by wildfly 9 is the version 2.5.1. As this version of the library is afflicted by this bug FasterXML/jackson-databind#735 and is loaded by default we need to exclude it.
I recently updated from version 2.3.3 to 2.5.1 and encountered a new issue with our custom deserializers. They either seemed to stop working or were active on the wrong fields.
I could narrow it down to some change in version 2.4.4 (2.4.3 is still working for me)
I wrote a test to show this behavior. It seems to appear when there a two maps with the same key and value types in a bean, and only one of them has a custom deserializer. The deserializer is then falsely used either for both or none of the maps.
This test works for me in version 2.4.3 and fails with higher versions.
The text was updated successfully, but these errors were encountered: