T8078473_2.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_2.out T8078473_2.java -XDrawDiagnostics -XDfind=diamond 6 */ 7 8package java.util.stream; 9 10class T8078473_2<P, Q> { 11 12 static class C<T, U> { 13 C(T8078473_2<?, ?> p) {} 14 } 15 16 { 17 new C<Q, Q>(this) {}; 18 new C<Q, Q>(this); 19 } 20} 21