mcimadamore@361: /* mcimadamore@361: * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@361: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@361: * mcimadamore@361: * This code is free software; you can redistribute it and/or modify it mcimadamore@361: * under the terms of the GNU General Public License version 2 only, as mcimadamore@361: * published by the Free Software Foundation. mcimadamore@361: * mcimadamore@361: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@361: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@361: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@361: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@361: * accompanied this code). mcimadamore@361: * mcimadamore@361: * You should have received a copy of the GNU General Public License version mcimadamore@361: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@361: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@361: * mcimadamore@361: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@361: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@361: * have any questions. mcimadamore@361: */ mcimadamore@361: mcimadamore@361: /* mcimadamore@361: * @test mcimadamore@361: * @bug 6569404 mcimadamore@361: * @summary Regression: Cannot instantiate an inner class of a type variable mcimadamore@361: * @author mcimadamore mcimadamore@361: */ mcimadamore@361: mcimadamore@361: public class T6569404a { mcimadamore@361: mcimadamore@361: static class Outer { mcimadamore@361: public class Inner {} mcimadamore@361: } mcimadamore@361: mcimadamore@361: static class Test { mcimadamore@361: public Test(T t) { mcimadamore@361: Outer.Inner inner = t.new Inner(); mcimadamore@361: } mcimadamore@361: } mcimadamore@361: mcimadamore@361: public static void main(String[] args) { mcimadamore@361: new Test(new Outer()); mcimadamore@361: } mcimadamore@361: }