[jdk21u-dev] RFR: 8318811: Compiler directives parser swallows a character after line comments

Goetz Lindenmaier goetz at openjdk.org
Thu May 8 06:35:52 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.

I successfully ran this through SAPs testing.

-------------

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1717#issuecomment-2861934632


More information about the jdk-updates-dev mailing list