RFR: 8257236: can't use var with a class named Z
Jan Lahoda
jlahoda at openjdk.java.net
Tue Jan 12 11:57:06 UTC 2021
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.
-------------
Commit messages:
- 8257236: can't use var with a class named Z
Changes: https://git.openjdk.java.net/jdk/pull/2047/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2047&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8257236
Stats: 17 lines in 2 files changed: 12 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/2047.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2047/head:pull/2047
PR: https://git.openjdk.java.net/jdk/pull/2047
More information about the kulla-dev
mailing list