1 /*
 2  * @test /nodynamiccopyright/
 3  * @modules jdk.incubator.code
 4  * @ignore there's no more unsupported AST features
 5  * @summary Test that unsupported langauge features don't crash javac
 6  * @compile/fail/ref=TestUnsupported.out -Werror -Xlint:-incubating -XDrawDiagnostics TestUnsupported.java
 7  */
 8 import jdk.incubator.code.Reflect;
 9 
10 public class TestUnsupported {
11     @Reflect
12     boolean m(Object o) {
13         return switch (o) {
14             case null, default -> true;
15         };
16     }
17 }