4513N/A/*
4513N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4513N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4513N/A *
4513N/A * This code is free software; you can redistribute it and/or modify it
4513N/A * under the terms of the GNU General Public License version 2 only, as
4513N/A * published by the Free Software Foundation.
4513N/A *
4513N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4513N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4513N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4513N/A * version 2 for more details (a copy is included in the LICENSE file that
4513N/A * accompanied this code).
4513N/A *
4513N/A * You should have received a copy of the GNU General Public License version
4513N/A * 2 along with this work; if not, write to the Free Software Foundation,
4513N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4513N/A *
4513N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4513N/A * or visit www.oracle.com if you need additional information or have any
4513N/A * questions.
4513N/A */
4513N/A
4513N/A/*
4513N/A * @test
4513N/A * @bug 7092744
4513N/A * @summary Tests for ambiguous methods
4513N/A * @author Sergey Malenkov
4513N/A */
4513N/A
4513N/Apublic class Test7092744 extends AbstractTest {
4513N/A
4513N/A public static void main(String[] args) {
4513N/A new Test7092744().test(true);
4513N/A }
4513N/A
4513N/A protected Object getObject() {
4513N/A return new Bean();
4513N/A }
4513N/A
4513N/A protected Object getAnotherObject() {
4513N/A Bean bean = new Bean();
4513N/A bean.setValue(99);
4513N/A return bean;
4513N/A }
4513N/A
4513N/A public static interface I<T extends Number> {
4513N/A
4513N/A T getValue();
4513N/A
4513N/A void setValue(T value);
4513N/A }
4513N/A
4513N/A public static class Bean implements I<Integer> {
4513N/A
4513N/A private Integer value;
4513N/A
4513N/A public Integer getValue() {
4513N/A return this.value;
4513N/A }
4513N/A
4513N/A public void setValue(Integer value) {
4513N/A this.value = value;
4513N/A }
4513N/A }
4513N/A}