hg: jdk/jdk: 8224031: Cannot parse switch expressions after type cast
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Thu May 16 14:43:48 UTC 2019
Changeset: e9f5e06a0dd7
Author: jlahoda
Date: 2019-05-16 16:42 +0200
URL: http://hg.openjdk.java.net/jdk/jdk/rev/e9f5e06a0dd7
8224031: Cannot parse switch expressions after type cast
Summary: Correctly categorize parentheses followed by the switch keyword as cast.
Reviewed-by: mcimadamore
! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
! test/langtools/tools/javac/switchexpr/ExpressionSwitch-old.out
! test/langtools/tools/javac/switchexpr/ExpressionSwitch.java
More information about the jdk-changes
mailing list