Repository navigation
Fix confirmed diagnostic handling gaps found by #682 - #684
Merged
Merged
Conversation
Collaborator
Author
|
I intentionally left alone some of the speculative finding in #682 since atm I don't have any indication to whether the are real or imagined. |
This was referenced Oct 9, 2026
Contributor
|
This fixes some gaps, including one that I still had in the embedding api branch, but there are more. I have folded this PR into the embedding api branch. If you want to merge it separately to master, that is fine by me, I will just re-resolve. |
lagergren
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewing #682 by @lagergren brought these concrete gaps in the existing diagnostic path to light. This PR fixes the identified behavior using the current APIs, without adding broader machinery for potential but unproven weaknesses.
The ParserTest regression covers the discarded-lookahead case.
Validation: ./gradlew :javatools:test :xdk:test --configuration-cache (passed).