Skip to content

Conversation

@yawkat
Copy link
Member

@yawkat yawkat commented Nov 22, 2022

When a number token is exactly at the end of the lexer text buffer, the parser would advance the lexer, triggering a buffer refill, before the number is parsed from the buffer. This patch moves the advance operation to come after parsing, which resolves the issue.

Also tracked as FasterXML/jackson-dataformats-text#356

Fixes #93

When a number token is exactly at the end of the lexer text buffer, the parser would advance the lexer, triggering a buffer refill, before the number is parsed from the buffer. This patch moves the advance operation to come after parsing, which resolves the issue.

Also tracked as FasterXML/jackson-dataformats-text#356

Fixes #93
@yawkat yawkat requested a review from timyates November 22, 2022 17:17
Copy link
Contributor

@timyates timyates left a comment

Choose a reason for hiding this comment

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

Suggestion for the test to get rid of the sonar smells

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell D 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@timyates
Copy link
Contributor

I'll leave you with the "no dev builds for GraalVM java 11" failure ;-)

@yawkat yawkat merged commit 51caa03 into 1.1.x Nov 23, 2022
@yawkat yawkat deleted the chunk-edge branch November 23, 2022 12:00
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.

2 participants