1 /*
   2  * @test /nodynamiccopyright/
   3  * @bug 8206986
   4  * @summary Verify the parser handles broken input gracefully.
   5  * @compile/fail/ref=ParserRecovery.out -XDrawDiagnostics --enable-preview -source 13 ParserRecovery.java
   6  */
   7 
   8 public class ParserRecovery {
   9     void t1(int e) {
  10          int i = switch (e) { case any; };
  11     }
  12     void t2(int e) {
  13          switch (e) { case any; }
  14     }
  15 }