T5011073.java revision 0:9a66ca7c79fa
1139969Simp/* 274465Srwatson * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. 374465Srwatson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 474465Srwatson * 574465Srwatson * This code is free software; you can redistribute it and/or modify it 674465Srwatson * under the terms of the GNU General Public License version 2 only, as 774465Srwatson * published by the Free Software Foundation. 874465Srwatson * 974465Srwatson * This code is distributed in the hope that it will be useful, but WITHOUT 1074465Srwatson * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1174465Srwatson * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1274465Srwatson * version 2 for more details (a copy is included in the LICENSE file that 1374465Srwatson * accompanied this code). 1474465Srwatson * 1574465Srwatson * You should have received a copy of the GNU General Public License version 1674465Srwatson * 2 along with this work; if not, write to the Free Software Foundation, 1774465Srwatson * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1874465Srwatson * 1974465Srwatson * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2074465Srwatson * CA 95054 USA or visit www.sun.com if you need additional information or 2174465Srwatson * have any questions. 2274465Srwatson */ 2374465Srwatson 2474465Srwatson/* 2574465Srwatson * @test 2674465Srwatson * @bug 5011073 2799110Sobrien * @summary javac should implement JLS3 three-pass overload resolution 2899110Sobrien * @author gafter 2999110Sobrien * 3074465Srwatson * @compile/fail -source 1.5 T5011073.java 3174465Srwatson */ 3274465Srwatson 3374465Srwatsonimport java.util.*; 3474465Srwatsonclass T5011073 { 3574465Srwatson static void f(Set<String> s, Class<String> c) {} 3674465Srwatson 3774465Srwatson static void g(Set<Integer> s, Class c) { 3874465Srwatson f(s, c); 3987260Sjedgar } 4087260Sjedgar} 4187260Sjedgar