hg: jdk/sandbox: 8224031: Cannot parse switch expressions after type cast
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Thu May 16 14:45:18 UTC 2019
Changeset: e9f5e06a0dd7
Author: jlahoda
Date: 2019-05-16 16:42 +0200
URL: http://hg.openjdk.java.net/jdk/sandbox/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-sandbox-changes
mailing list