hg: jdk/sandbox: 8214114: Switch expressions with try-catch statements
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Tue Dec 11 08:15:24 UTC 2018
Changeset: 9745e4e36dd1
Author: jlahoda
Date: 2018-12-11 09:10 +0100
URL: http://hg.openjdk.java.net/jdk/sandbox/rev/9745e4e36dd1
8214114: Switch expressions with try-catch statements
Summary: When switch expression contains try-catch, move the stack values into locals before the executing the switch expression, and back when it is done.
Reviewed-by: mcimadamore, vromero
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
! test/langtools/tools/javac/switchexpr/ExpressionSwitchBugs.java
! test/langtools/tools/javac/switchexpr/ExpressionSwitchEmbedding.java
+ test/langtools/tools/javac/switchexpr/TryCatch.java
More information about the jdk-sandbox-changes
mailing list