[jdk21u-dev] Integrated: 8318811: Compiler directives parser swallows a character after line comments
Satyen Subramaniam
ssubramaniam at openjdk.org
Sat May 10 02:44:57 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.
This pull request has now been integrated.
Changeset: 301fd4d1
Author: Satyen Subramaniam <ssubramaniam at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk21u-dev/commit/301fd4d12fe84dd0aa21dc9d7cf783a8a77d5034
Stats: 21 lines in 2 files changed: 20 ins; 0 del; 1 mod
8318811: Compiler directives parser swallows a character after line comments
Backport-of: 141dae8b76d41accfa02a0250a1c24364cbf6f25
-------------
PR: https://git.openjdk.org/jdk21u-dev/pull/1717
More information about the jdk-updates-dev
mailing list