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