mcimadamore@288: /* mcimadamore@288: * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@288: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@288: * mcimadamore@288: * This code is free software; you can redistribute it and/or modify it mcimadamore@288: * under the terms of the GNU General Public License version 2 only, as mcimadamore@288: * published by the Free Software Foundation. mcimadamore@288: * mcimadamore@288: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@288: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@288: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@288: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@288: * accompanied this code). mcimadamore@288: * mcimadamore@288: * You should have received a copy of the GNU General Public License version mcimadamore@288: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@288: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@288: * mcimadamore@288: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@288: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@288: * have any questions. mcimadamore@288: */ mcimadamore@288: mcimadamore@288: /** mcimadamore@288: * @test mcimadamore@288: * @bug 6722234 mcimadamore@288: * @summary javac diagnostics need better integration with the type-system mcimadamore@288: * @author mcimadamore mcimadamore@288: * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java mcimadamore@288: * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java mcimadamore@288: */ mcimadamore@288: mcimadamore@288: import java.util.*; mcimadamore@288: mcimadamore@288: class T6722234b { mcimadamore@288: void m(List l1, List l2) {} mcimadamore@288: mcimadamore@288: void test(List list) { mcimadamore@288: m(list, list); mcimadamore@288: } mcimadamore@288: }