mcimadamore@93: /* mcimadamore@93: * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@93: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@93: * mcimadamore@93: * This code is free software; you can redistribute it and/or modify it mcimadamore@93: * under the terms of the GNU General Public License version 2 only, as mcimadamore@93: * published by the Free Software Foundation. mcimadamore@93: * mcimadamore@93: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@93: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@93: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@93: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@93: * accompanied this code). mcimadamore@93: * mcimadamore@93: * You should have received a copy of the GNU General Public License version mcimadamore@93: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@93: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@93: * mcimadamore@93: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@93: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@93: * have any questions. mcimadamore@93: */ mcimadamore@93: mcimadamore@93: /** mcimadamore@93: * @test mcimadamore@93: * @bug 6718364 mcimadamore@93: * @summary inference fails when a generic method is invoked with raw arguments mcimadamore@93: * @compile/ref=T6718364.out -XDstdout -XDrawDiagnostics -Xlint:unchecked T6718364.java mcimadamore@93: */ mcimadamore@93: class T6718364 { mcimadamore@93: class X {} mcimadamore@93: mcimadamore@93: public void m(X x, T t) {} mcimadamore@93: mcimadamore@93: public void test() { mcimadamore@93: m(new X>(), new X()); mcimadamore@93: } mcimadamore@93: }