Skip to content

Optional<Long> and OptionalLong deserialization are not consistent when deserializing from String. #15

@lrpg

Description

@lrpg

Examplewith: { "someString" : "9223372036854775807" }
Optional<Long> successfully deserializes while LongDeserializer
OptionalLong does not.

It is due to the first deserializing with NumberDeserializers.LongDeserializer using _parseLong(p, ctxt)
while the latter is deserialized with OptionalLongDeserializer using jp.getLongValue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions