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

Fixes a bug that caused the binary reader to stop consuming from the stream after evaluating an e-expression that produced no values. #967

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

tgregg
Copy link
Contributor

@tgregg tgregg commented Oct 11, 2024

Issue #, if available:

Fixes #962

Description of changes:
The diff is smaller than it looks. The scope of the while loop is extended over everything in IonReaderContinuableCoreBinary.nextValue(). The reader goes around the loop again any time the end of the active e-expression evaluation is reached. Doing so allows it to properly consume the next value from the stream instead of returning while still "between" values.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tgregg tgregg requested a review from popematt October 11, 2024 00:24
Base automatically changed from ion-11-encoding-text-evaluation to ion-11-encoding October 11, 2024 22:49
…stream after evaluating an e-expression that produced no values.
@tgregg tgregg force-pushed the ion-11-encoding-text-evaluation-fix-962 branch from 3cd2a82 to 05a1351 Compare October 11, 2024 22:52
@tgregg tgregg merged commit f7c5a43 into ion-11-encoding Oct 11, 2024
16 checks passed
@tgregg tgregg deleted the ion-11-encoding-text-evaluation-fix-962 branch October 11, 2024 23:03
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

Successfully merging this pull request may close these issues.

3 participants