T6182950a.java revision 251
251N/A/*
251N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
251N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
251N/A *
251N/A * This code is free software; you can redistribute it and/or modify it
251N/A * under the terms of the GNU General Public License version 2 only, as
251N/A * published by the Free Software Foundation.
251N/A *
251N/A * This code is distributed in the hope that it will be useful, but WITHOUT
251N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
251N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
251N/A * version 2 for more details (a copy is included in the LICENSE file that
251N/A * accompanied this code).
251N/A *
251N/A * You should have received a copy of the GNU General Public License version
251N/A * 2 along with this work; if not, write to the Free Software Foundation,
251N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
251N/A *
251N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
251N/A * CA 95054 USA or visit www.sun.com if you need additional information or
251N/A * have any questions.
251N/A */
251N/A
251N/A/*
251N/A * @test
251N/A * @bug 6182950
251N/A * @summary methods clash algorithm should not depend on return type
251N/A * @author mcimadamore
251N/A * @compile/fail/ref=T6182950a.out -XDrawDiagnostics T6182950a.java
251N/A */
251N/Aimport java.util.List;
251N/A
251N/Aclass T6182950a {
251N/A int m(List<String> l) {return 0;}
251N/A double m(List<Integer> l) {return 0;}
251N/A}