hg: jdk/sandbox: 8227010: Error recovery after local variable redeclaration can be improved
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Thu Jul 4 15:00:21 UTC 2019
Changeset: 852dcb52bace
Author: jlahoda
Date: 2019-07-04 16:51 +0200
URL: http://hg.openjdk.java.net/jdk/sandbox/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-sandbox-changes
mailing list