hg: jdk/submit: 8214114: Switch expressions with try-catch statements

jan.lahoda at oracle.com jan.lahoda at oracle.com
Tue Dec 11 08:12:13 UTC 2018


Changeset: 9745e4e36dd1
Author:    jlahoda
Date:      2018-12-11 09:10 +0100
URL:       http://hg.openjdk.java.net/jdk/submit/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-submit-changes mailing list