[jdk21u-dev] RFR: 8318811: Compiler directives parser swallows a character after line comments
duke
duke at openjdk.org
Thu May 8 17:08:00 UTC 2025
On Fri, 25 Apr 2025 16:48:54 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:
> Backporting JDK-8318811: Compiler directives parser swallows a character after line comments. Fixes JSON::skip_line_comment() to match specification and "return the first token after the line comment without consuming it" by using `peek` instead of `next`. Adds test. Ran GHA Sanity Checks, local Tier 1 and 2, and new `test/hotspot/jtreg/compiler/compilercontrol/parser/DirectiveParserTest.java` tests. Patch is clean.
@satyenme
Your change (at version a18a726c8ca7da3b12e1f7701b20981b15f191cd) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1717#issuecomment-2863727652
More information about the jdk-updates-dev
mailing list