1/* 2 * @test /nodynamiccopyright/ 3 * @author mcimadamore 4 * @bug 6467183 5 * @summary unchecked warning on cast of parameterized generic subclass 6 * @compile/ref=T6467183b.out -XDrawDiagnostics -Xlint:unchecked T6467183b.java 7 */ 8 9class T6665356b<T> { 10 11 class A<S> {} 12 class B<X> extends A<X> {} 13 14 void cast(A<? extends Number> a) { 15 Object o = (B<? extends Integer>)a; 16 } 17} 18