mcimadamore@254: /* mcimadamore@254: * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@254: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@254: * mcimadamore@254: * This code is free software; you can redistribute it and/or modify it mcimadamore@254: * under the terms of the GNU General Public License version 2 only, as mcimadamore@254: * published by the Free Software Foundation. mcimadamore@254: * mcimadamore@254: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@254: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@254: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@254: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@254: * accompanied this code). mcimadamore@254: * mcimadamore@254: * You should have received a copy of the GNU General Public License version mcimadamore@254: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@254: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@254: * mcimadamore@254: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@254: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@254: * have any questions. mcimadamore@254: */ mcimadamore@254: mcimadamore@254: /* mcimadamore@254: * @test 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: }