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

Ensure that skipChildren() of non-blocking JsonParser will throw exception if not enough input #463

Closed
cowtowncoder opened this issue May 21, 2018 · 0 comments

Comments

@cowtowncoder
Copy link
Member

(note: see #462 as background)

Since non-blocking parser may not have enough content to successfully skip enough content to support skipChildren(), nor has any means to preserve or return enough state to allow caller to retry after content, it should indicate its inability to skip by throwing a JsonParseException.
Although it would be possible to throw this (or UnsupportedOperationException) for all calls, it may make more sense to only do this in cases operation can not succeed; and make it work if it can.

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