2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 18:03:51 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4916634
|
|
|
|
* @summary Wildcard capture
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 18:03:51 -07:00
|
|
|
* @compile/fail/ref=Capture.out -XDrawDiagnostics Capture.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class X<T> {}
|
|
|
|
|
|
|
|
class Capture {
|
|
|
|
void f(X<X<? extends Number>> x) {
|
|
|
|
f4(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
<T> void f4(X<X<T>> x) {}
|
|
|
|
}
|