test/langtools/tools/javac/switchexpr/ParserRecovery.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
     1 /*
     1 /*
     2  * @test /nodynamiccopyright/
     2  * @test /nodynamiccopyright/
     3  * @bug 8206986
     3  * @bug 8206986
     4  * @summary Verify the parser handles broken input gracefully.
     4  * @summary Verify the parser handles broken input gracefully.
     5  * @compile/fail/ref=ParserRecovery.out -XDrawDiagnostics --enable-preview -source ${jdk.version} ParserRecovery.java
     5  * @compile/fail/ref=ParserRecovery.out -XDrawDiagnostics ParserRecovery.java
     6  */
     6  */
     7 
     7 
     8 public class ParserRecovery {
     8 public class ParserRecovery {
     9     void t1(int e) {
     9     void t1(int e) {
    10          int i = switch (e) { case any; };
    10          int i = switch (e) { case any; };