Skip to content

FAIL_ON_NUMBERS_FOR_ENUMS does not fail when integer value is quoted #684

@qqsandas

Description

@qqsandas

I'm using Jackson 2.4 and would like to use the FAIL_ON_NUMBERS_FOR_ENUMS deserialization feature.

This seems to be working when the json value is type int without quotes. However, when the json value is a quoted integer, it does not throw an exception, and converts the value based on enum ordinal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions