-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
StdDelegatingDeserializer
ignores nullValue
of _delegateDeserializer
.
#3741
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
Comments
@k163377 yes, I think you are right wrt delegation, methods are missing. And I suppose calling of I think this would qualify to be in 2.14(.2). I can probably work on this, time permitting, to get it in 2.14.2. Or if you want to do PR, happy to review. Methods from
So I think all of those should delegate. Although one way to reduce risk would be to only delegate Ideally we'd also have unit tests for these which adds to work. |
Actually, I think overrides may or may not make sense so need to check on case by case basis: pure delegating only via EDIT: and in fact 3.0 does that. |
Describe the bug
StdDelegatingDeserializer
does not properly override methods such asgetNullValue
.This prevents
Converter
from working when the value isnull
.Version information
2.14.1
To Reproduce
I think I can read it from the source code, but I will write it if necessary.
https://github.com/FasterXML/jackson-databind/blob/ae3ca887c589e075ed13ea0665ac9bf22c0517a9/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.java
Expected behavior
override
a method such asgetNullValue
and callConverter
if the result of such a method call to_delegateDeserializer
is notnull
.Additional context
There was a situation where the
value class
deserialization injackson-module-kogera
needed to be enabled.https://github.com/ProjectMapK/jackson-module-kogera
The text was updated successfully, but these errors were encountered: