2009-03-05 17:24:08 +00:00
|
|
|
/*
|
2015-05-15 01:09:51 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2009-03-05 17:24:08 +00:00
|
|
|
* @author mcimadamore
|
|
|
|
* @bug 6467183
|
2015-05-15 01:09:51 -07:00
|
|
|
* @summary unchecked warning on cast of parameterized generic subclass
|
|
|
|
* @compile/ref=T6467183b.out -XDrawDiagnostics -Xlint:unchecked T6467183b.java
|
2009-03-05 17:24:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T6665356b<T> {
|
|
|
|
|
|
|
|
class A<S> {}
|
|
|
|
class B<X> extends A<X> {}
|
|
|
|
|
|
|
|
void cast(A<? extends Number> a) {
|
|
|
|
Object o = (B<? extends Integer>)a;
|
|
|
|
}
|
|
|
|
}
|