1049N/A/*
1049N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1049N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1049N/A *
1049N/A * This code is free software; you can redistribute it and/or modify it
1049N/A * under the terms of the GNU General Public License version 2 only, as
1049N/A * published by the Free Software Foundation.
1049N/A *
1049N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1049N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1049N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1049N/A * version 2 for more details (a copy is included in the LICENSE file that
1049N/A * accompanied this code).
1049N/A *
1049N/A * You should have received a copy of the GNU General Public License version
1049N/A * 2 along with this work; if not, write to the Free Software Foundation,
1049N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1049N/A *
1049N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1049N/A * or visit www.oracle.com if you need additional information or have any
1049N/A * questions.
1049N/A */
1049N/A
1049N/A/*
1049N/A * @test
1049N/A * @bug 7062745
1049N/A * @summary Regression: difference in overload resolution when two methods are maximally specific
1049N/A *
1049N/A * @compile T7062745pos.java
1049N/A */
1049N/A
1049N/Aimport java.util.*;
1049N/A
1049N/Aclass T7062745pos {
1049N/A interface A { List<Number> getList(); }
1049N/A interface B { List getList(); }
1049N/A interface AB extends A, B {}
1049N/A
1049N/A void test(AB ab) {
1049N/A Number n = ab.getList().get(1);
1049N/A }
1049N/A}