mcimadamore@138: /* ohair@798: * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. mcimadamore@138: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@138: * mcimadamore@138: * This code is free software; you can redistribute it and/or modify it mcimadamore@138: * under the terms of the GNU General Public License version 2 only, as mcimadamore@138: * published by the Free Software Foundation. mcimadamore@138: * mcimadamore@138: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@138: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@138: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@138: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@138: * accompanied this code). mcimadamore@138: * mcimadamore@138: * You should have received a copy of the GNU General Public License version mcimadamore@138: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@138: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@138: * 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@138: */ mcimadamore@138: mcimadamore@138: /* mcimadamore@138: * @test mcimadamore@138: * @author Maurizio Cimadamore mcimadamore@138: * @bug 6586091 mcimadamore@138: * @summary javac crashes with StackOverflowError mcimadamore@138: * @compile T6586091.java mcimadamore@138: */ mcimadamore@138: mcimadamore@138: class T6586091 { mcimadamore@138: static class A> {} mcimadamore@138: static class B extends A> {} mcimadamore@138: mcimadamore@138: A> t = null; mcimadamore@138: B c = (B)t; jjg@525: }