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

Jackson reads strings starting with numbers as integers instead of throwing exception #4035

Closed
foosiee opened this issue Jul 13, 2023 · 3 comments
Labels
to-evaluate Issue that has been received but not yet evaluated

Comments

@foosiee
Copy link

foosiee commented Jul 13, 2023

Describe the bug
See title

Version information
2.12.7

To Reproduce

ObjectMapper objectMapper = new ObjectMapper();
String s = "123 rest of string";
Object o = objectMapper.readValue(s, Object.class); // should throw exception
System.out.println(o); // 123

Expected behavior
Throw a JsonParseException

@foosiee foosiee added the to-evaluate Issue that has been received but not yet evaluated label Jul 13, 2023
@pjfanning
Copy link
Member

link to #3406, #3977, #3999, #3548, #3400

@foosiee
Copy link
Author

foosiee commented Jul 13, 2023

Great thanks

@foosiee foosiee closed this as completed Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-evaluate Issue that has been received but not yet evaluated
Projects
None yet
Development

No branches or pull requests

2 participants