mcimadamore@254: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@254: * @bug 6400189 mcimadamore@254: * @summary raw types and inference mcimadamore@254: * @author mcimadamore mcimadamore@254: * @compile/fail/ref=T6400189b.out T6400189b.java -Xlint:unchecked -XDrawDiagnostics mcimadamore@254: */ mcimadamore@254: mcimadamore@254: class T6400189b { mcimadamore@254: mcimadamore@254: static class A { mcimadamore@254: T m(T6400189b x) { mcimadamore@254: return null; mcimadamore@254: } mcimadamore@254: } mcimadamore@254: mcimadamore@254: static class B extends A { mcimadamore@254: T m(T6400189b x) { mcimadamore@254: return null; mcimadamore@254: } mcimadamore@254: } mcimadamore@254: mcimadamore@254: void test(B b) { mcimadamore@254: Integer i = b.m(new T6400189b()); mcimadamore@254: } mcimadamore@254: }