Integrated: 8359383: Incorrect starting positions for implicitly typed variables
Archie Cobbs
acobbs at openjdk.org
Fri Sep 5 14:33:22 UTC 2025
On Thu, 12 Jun 2025 19:07:38 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> This fixes starting position bugs relating to implicitly typed variables; see the linked issue for details.
>
> This also makes it possible to recover the declaration type (explicit, implicit, or `var`) from a `JCVariableDecl` and, in the case of `var` declarations, the starting position of the `var`; previously this wasn't possible.
>
> Finally, as a minor drive-by improvement, we can now pretty print `var` as `var` instead of `/*missing*/`.
This pull request has now been integrated.
Changeset: 1e90af08
Author: Archie Cobbs <acobbs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1e90af08abb74df9ec4ab94b67deeae5c1c9fee1
Stats: 153 lines in 12 files changed: 94 ins; 10 del; 49 mod
8359383: Incorrect starting positions for implicitly typed variables
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/jdk/pull/25786
More information about the compiler-dev
mailing list