hg: jdk/jdk: 8227010: Error recovery after local variable redeclaration can be improved
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Thu Jul 4 14:52:35 UTC 2019
Changeset: 852dcb52bace
Author: jlahoda
Date: 2019-07-04 16:51 +0200
URL: http://hg.openjdk.java.net/jdk/jdk/rev/852dcb52bace
8227010: Error recovery after local variable redeclaration can be improved
Summary: Entering duplicate local variables into the current scope so that the new variable is used instead of the previous variable.
Reviewed-by: mcimadamore
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/MemberEnter.java
+ test/langtools/tools/javac/recovery/LocalVarHiding.java
+ test/langtools/tools/javac/recovery/LocalVarHiding.out
More information about the jdk-changes
mailing list