You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue became apparent when using an @JsonAnySetter with the Immutables Library. The underlying implementation uses a guava ImmutableMap which throws an exception when a null entry is added.
I'm using the following interface method declaration for the anySetter. The expectation is that null values would be deserialized as an instance of NullNode instead of null
Thanks! As per my note on PR, all I need is CLA and I'll merge this fix, backporting to 2.7 as well (or if you want, you can change it for branch 2.7).
I've just submitted the CLA. I've opened the PR against 2.6. Are you still accepting changes to this branch? I would ideally like to patch it into all open branches.
@ejsolberg I did apply it against 2.6 (thank you for doing it there -- that's perfect), although it is uncertain whether new releases will be made -- branch is closed from full releases. But it is possible that micro-patches could be done, so it'd be in 2.6.6.1. Fix will go in 2.7.5 for sure, and of course in 2.8.0 release candidates once we start that process.
Issue became apparent when using an
@JsonAnySetter
with the Immutables Library. The underlying implementation uses a guava ImmutableMap which throws an exception when a null entry is added.I'm using the following interface method declaration for the anySetter. The expectation is that null values would be deserialized as an instance of
NullNode
instead ofnull
I believe the issue is here:
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/deser/SettableAnyProperty.java#L132-L134
The text was updated successfully, but these errors were encountered: