Skip to content

Conversation

@cirras
Copy link
Collaborator

@cirras cirras commented Mar 4, 2025

This PR fixes instances of IllegalArgumentException being raised by the CPD executor on lines that end with >= or <=,, caused by file pointer errors.

>= and <= token positions were incorrect after token combination had occurred.
The solution is to adjust the token line and charPositionInLine as part of the combination step, where we previously only adjusted the token start/stop indices.

@cirras cirras requested a review from fourls March 4, 2025 05:44
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@fourls fourls merged commit bb0a855 into master Mar 4, 2025
3 checks passed
@fourls fourls deleted the gte_tokens_are_the_bane_of_my_existence_and_must_be_expunged_from_this_plane branch March 4, 2025 06:04
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