-
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
configureAbsentsAsNulls
not working for primitive Optionals like OptionalInt
#13
Comments
What is the bug here? But perhaps you have an actual problem, and above is just explaining why you think that might occur? If so, please describe the problem first. |
The logic around |
configureAbsentsAsNulls
not working for primitive Optionals like OptionalInt
@lrpg thank you for clarification, makes sense. I updated title to reflect what I think is the issue. |
Ok required bit bigger changes but works now, for 2.9.0(.pr2). |
is evaluated to true with Optional<Integer> while
it is evaluated to false with OptionalInt because OptionalInt is not a type or subtype of Optional<>
Same goes for OptionalDouble and OptionalLong
https://github.com/FasterXML/jackson-modules-java8/blob/master/datatypes/src/main/java/com/fasterxml/jackson/datatype/jdk8/Jdk8BeanSerializerModifier.java#L26
The text was updated successfully, but these errors were encountered: