[jdk21u-dev] RFR: 8318811: Compiler directives parser swallows a character after line comments
Satyen Subramaniam
ssubramaniam at openjdk.org
Fri Apr 25 16:54:07 UTC 2025
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.
-------------
Commit messages:
- Backport 141dae8b76d41accfa02a0250a1c24364cbf6f25
Changes: https://git.openjdk.org/jdk21u-dev/pull/1717/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1717&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8318811
Stats: 21 lines in 2 files changed: 20 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/1717.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1717/head:pull/1717
PR: https://git.openjdk.org/jdk21u-dev/pull/1717
More information about the jdk-updates-dev
mailing list