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