langtools/test/tools/javac/parser/7157165/T7157165.java
author mcimadamore
Fri, 30 Mar 2012 19:19:50 +0100
changeset 12337 a27eed20c9a3
permissions -rw-r--r--
7157165: Regression: code with disjunctive type crashes javac Summary: Bad recovery logic in parser code that checks for generic cast Reviewed-by: jjg

/*
 * @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;
}