T6722234b.java revision 287:d402db1005ad
1205821Sedwin/* 213840Swosch * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. 313840Swosch * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 413840Swosch * 513840Swosch * This code is free software; you can redistribute it and/or modify it 613840Swosch * under the terms of the GNU General Public License version 2 only, as 713840Swosch * published by the Free Software Foundation. 813840Swosch * 913840Swosch * This code is distributed in the hope that it will be useful, but WITHOUT 1013840Swosch * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1113840Swosch * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1213840Swosch * version 2 for more details (a copy is included in the LICENSE file that 1313840Swosch * accompanied this code). 1413840Swosch * 1513840Swosch * You should have received a copy of the GNU General Public License version 1613840Swosch * 2 along with this work; if not, write to the Free Software Foundation, 1713840Swosch * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1813840Swosch * 1913840Swosch * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2013840Swosch * CA 95054 USA or visit www.sun.com if you need additional information or 2113840Swosch * have any questions. 2213840Swosch */ 2313840Swosch 2413840Swosch/** 2513840Swosch * @test 2613840Swosch * @bug 6722234 2713840Swosch * @summary javac diagnostics need better integration with the type-system 2813840Swosch * @author mcimadamore 2913840Swosch * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java 3013840Swosch * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java 3115714Sache */ 3213840Swosch 3313840Swoschimport java.util.*; 3487235Smarkm 3513840Swoschclass T6722234b { 3687628Sdwmalone <T> void m(List<T> l1, List<T> l2) {} 3713840Swosch 3887628Sdwmalone void test(List<? extends T6722234b> list) { 3987235Smarkm m(list, list); 4087628Sdwmalone } 4113840Swosch} 4287628Sdwmalone