hg: jdk/jdk: 8214113: Switch expressions may have constant type and may be skipped during write
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Mon Nov 26 09:36:15 UTC 2018
Changeset: c6df6671267e
Author: jlahoda
Date: 2018-11-26 09:24 +0100
URL: http://hg.openjdk.java.net/jdk/jdk/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-all-changes
mailing list