jdk-24/langtools/test/tools/javac/parser/7157165/T7157165.java
Maurizio Cimadamore 410c51d5f4 7157165: Regression: code with disjunctive type crashes javac
Bad recovery logic in parser code that checks for generic cast

Reviewed-by: jjg
2012-03-30 19:19:50 +01:00

13 lines
246 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7157165
*
* @summary Regression: code with disjunctive type crashes javac
* @compile/fail/ref=T7157165.out -XDrawDiagnostics T7157165.java
*
*/
class T7157165 {
Foo<? extends A|B> foo1 = null;
}