RFR: 8257236: can't use var with a class named Z
Athijegannathan Sundararajan
sundar at openjdk.java.net
Tue Jan 12 12:13:56 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.
Marked as reviewed by sundar (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2047
More information about the kulla-dev
mailing list