Bar.java revision 553:9d9f26857129
1219820Sjeff/* 2219820Sjeff * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 3219820Sjeff * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4219820Sjeff * 5219820Sjeff * This code is free software; you can redistribute it and/or modify it 6219820Sjeff * under the terms of the GNU General Public License version 2 only, as 7219820Sjeff * published by the Free Software Foundation. 8219820Sjeff * 9219820Sjeff * This code is distributed in the hope that it will be useful, but WITHOUT 10219820Sjeff * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11219820Sjeff * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12219820Sjeff * version 2 for more details (a copy is included in the LICENSE file that 13219820Sjeff * accompanied this code). 14219820Sjeff * 15219820Sjeff * You should have received a copy of the GNU General Public License version 16219820Sjeff * 2 along with this work; if not, write to the Free Software Foundation, 17219820Sjeff * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18219820Sjeff * 19219820Sjeff * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20219820Sjeff * or visit www.oracle.com if you need additional information or have any 21219820Sjeff * questions. 22219820Sjeff */ 23219820Sjeff 24219820Sjeff/* 25219820Sjeff * @test 26219820Sjeff * @bug 6318240 27219820Sjeff * @summary Creation of array of inner class of an enclosing wildcard type doesn't work 28219820Sjeff * @compile Bar.java 29219820Sjeff */ 30219820Sjeff 31219820Sjeffclass Bar<T> { 32219820Sjeff Bar<?>.Inner<?>.InnerMost[] array = new Bar<?>.Inner<?>.InnerMost[10]; 33219820Sjeff class Inner<S> { 34219820Sjeff class InnerMost { 35219820Sjeff } 36219820Sjeff } 37219820Sjeff} 38219820Sjeff