2015-04-27 17:36:20 +05:30

21 lines
402 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8078473
* @summary javac diamond finder crashes when used to build java.base module
* @compile/ref=T8078473_2.out T8078473_2.java -XDrawDiagnostics -XDfind=diamond
*/
package java.util.stream;
class T8078473_2<P, Q> {
static class C<T, U> {
C(T8078473_2<?, ?> p) {}
}
{
new C<Q, Q>(this) {};
new C<Q, Q>(this);
}
}