Skip to content

configureAbsentsAsNulls not working for primitive Optionals like OptionalInt #13

@lrpg

Description

@lrpg
type.isTypeOrSubTypeOf(Optional.class)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions