langtools/test/tools/javac/cast/6467183/T6467183b.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 30713 4a01965154be
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @author mcimadamore
 * @bug     6467183
 * @summary unchecked warning on cast of parameterized generic subclass
 * @compile/ref=T6467183b.out -XDrawDiagnostics -Xlint:unchecked T6467183b.java
 */

class T6665356b<T> {

    class A<S> {}
    class B<X> extends A<X> {}

    void cast(A<? extends Number> a) {
        Object o = (B<? extends Integer>)a;
    }
}