Integrated: 8257236: can't use var with a class named Z
Jan Lahoda
jlahoda at openjdk.java.net
Wed Jan 13 11:30:58 UTC 2021
On Tue, 12 Jan 2021 11:52:20 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> To implements the local variable type inference, JShell needs to generate a few code snippets, which include an auxiliary type parameter and local variables. The name of the type parameter and variables may currently clash with names in the initializer of the variable. The proposal here is to generate a synthetic name, which won't clash with anything in the var's initializer.
This pull request has now been integrated.
Changeset: 77ca1031
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/77ca1031
Stats: 17 lines in 2 files changed: 12 ins; 0 del; 5 mod
8257236: can't use var with a class named Z
Reviewed-by: sundar
-------------
PR: https://git.openjdk.java.net/jdk/pull/2047
More information about the kulla-dev
mailing list