Integrated: 8324736: Invalid end positions for EMPTY_STATEMENT

Archie Cobbs acobbs at openjdk.org
Thu Mar 21 22:57:29 UTC 2024


On Fri, 26 Jan 2024 18:33:21 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> In the fix for [JDK-8305671](https://bugs.openjdk.org/browse/JDK-8305671), an `EMPTY_STATEMENT` representing a lone semicolon was being created with the wrong source code position. The bug was that the starting position needed to be captured prior to advancing to the next token, not after.

This pull request has now been integrated.

Changeset: 46809b39
Author:    Archie Cobbs <acobbs at openjdk.org>
Committer: Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/46809b396ca76210f7939c8edf5a8263c29d3ddb
Stats:     87 lines in 2 files changed: 86 ins; 0 del; 1 mod

8324736: Invalid end positions for EMPTY_STATEMENT

Reviewed-by: vromero

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

PR: https://git.openjdk.org/jdk/pull/17595


More information about the compiler-dev mailing list