Skip to content
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

FAIL_ON_NUMBERS_FOR_ENUMS does not fail when integer value is quoted #684

Closed
qqsandas opened this issue Jan 21, 2015 · 3 comments
Closed
Milestone

Comments

@qqsandas
Copy link

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

@cowtowncoder
Copy link
Member

Ah. Yes, sounds like a bug there.

@cowtowncoder cowtowncoder added this to the 2.5.1 milestone Jan 22, 2015
@cowtowncoder
Copy link
Member

Fixed for 2.5.1

@qqsandas
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants