T8078473.java revision 2905:520635aae9e1
1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8078473 4 * @summary javac diamond finder crashes when used to build java.base module 5 * @compile/ref=T8078473.out T8078473.java -XDrawDiagnostics -XDfind=diamond 6 */ 7 8class T8078473<P, Q> { 9 10 static class C<T, U> { 11 C(T8078473<?, ?> p) {} 12 } 13 14 { 15 new C<Q, Q>(this) {}; 16 new C<Q, Q>(this); 17 } 18} 19