hg: jdk/sandbox: 8214113: Switch expressions may have constant type and may be skipped during write
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Mon Nov 26 09:45:35 UTC 2018
Changeset: c6df6671267e
Author: jlahoda
Date: 2018-11-26 09:24 +0100
URL: http://hg.openjdk.java.net/jdk/sandbox/rev/c6df6671267e
8214113: Switch expressions may have constant type and may be skipped during write
Summary: Switch expressions should not be compile-time constants.
Reviewed-by: mcimadamore
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/langtools/tools/javac/switchexpr/SwitchExpressionIsNotAConstant.java
More information about the jdk-sandbox-changes
mailing list