133N/A/*
797N/A * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
133N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
133N/A *
133N/A * This code is free software; you can redistribute it and/or modify it
133N/A * under the terms of the GNU General Public License version 2 only, as
133N/A * published by the Free Software Foundation.
133N/A *
133N/A * This code is distributed in the hope that it will be useful, but WITHOUT
133N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
133N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
133N/A * version 2 for more details (a copy is included in the LICENSE file that
133N/A * accompanied this code).
133N/A *
133N/A * You should have received a copy of the GNU General Public License version
133N/A * 2 along with this work; if not, write to the Free Software Foundation,
133N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
133N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
133N/A */
133N/A
133N/A/*
133N/A * @test
133N/A * @bug 6738538 6687444
133N/A * @summary javac crashes when using a type parameter as a covariant method return type
133N/A * @author Maurizio Cimadamore
133N/A *
133N/A * @compile T6738538b.java
133N/A */
133N/A
133N/Aclass T6738538b {
133N/A interface I1 {
133N/A Object m();
133N/A }
133N/A
133N/A interface I2 {}
133N/A
133N/A class C1<T> implements I1 {
133N/A public T m() {
133N/A return null;
133N/A }
133N/A }
133N/A
133N/A class C2<T extends C1<?> & I2> {}
524N/A}