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

Add basic error-recovery for ObjectReader.readValues() #734

Closed
cowtowncoder opened this issue Mar 25, 2015 · 0 comments
Closed

Add basic error-recovery for ObjectReader.readValues() #734

cowtowncoder opened this issue Mar 25, 2015 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

(follow up for #733)

In case of JsonProcessingException, MappingIterator will currently be left pointing right after whatever token was last tokenized (or character following tokenization error). While this is better than indeterminate state, ideally it should try to do some error recover. And although it may not be possible to recover successfully from all kinds of issues, it should be possible to do best effort given that iterator has some knowledge of state when it was opened; that is, it can try to heuristically match closing END_OBJECT, depending on nesting level it was created at.

In addition it may make sense to add a switch to prevent using of any automated heuristics, for those users who want full control over recovery.

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

1 participant