Skip to content

Should not parse LocalDates from number (timestamp) -- or at least should have an option preventing #58

@billoneil

Description

@billoneil

In Jackson 2.8.x I had a unit test that parsed the following and expected an exception.

{
  "date": 123,
  "message": "Happy New Year!"
}

As of 2.9 related to this commit https://github.com/FasterXML/jackson-modules-java8/pull/22/files#diff-a1552641fab3c9690f2c8b0f5ee2fe89R102 it now parses as 1970-05-04

Is there a way to turn this off if I expect my dates to come in as a different format? I don't want to parse random integers as dates when it should be invalid input.

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