895N/A/*
895N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
895N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
895N/A *
895N/A * This code is free software; you can redistribute it and/or modify it
895N/A * under the terms of the GNU General Public License version 2 only, as
895N/A * published by the Free Software Foundation.
895N/A *
895N/A * This code is distributed in the hope that it will be useful, but WITHOUT
895N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
895N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
895N/A * version 2 for more details (a copy is included in the LICENSE file that
895N/A * accompanied this code).
895N/A *
895N/A * You should have received a copy of the GNU General Public License version
895N/A * 2 along with this work; if not, write to the Free Software Foundation,
895N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
895N/A *
895N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
895N/A * or visit www.oracle.com if you need additional information or have any
895N/A * questions.
895N/A */
895N/A
895N/A/*
895N/A * @test
895N/A * @bug 7015715
895N/A *
895N/A * @summary lub gets stuck on type with complex supertype
895N/A * @author Neal Gafter
895N/A * @compile T7015715.java
895N/A *
895N/A */
895N/A
895N/Aclass T7015715 {
895N/A
895N/A interface I<T> {}
895N/A
895N/A interface A<T> extends I<A<A<T>>>{}
895N/A
895N/A static abstract class X {
895N/A abstract <T> T foo(T x, T y);
895N/A void bar(A<Integer> x, A<String> y){
895N/A foo(x, y);
895N/A }
895N/A }
895N/A}