32N/A/*
553N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
32N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
32N/A *
32N/A * This code is free software; you can redistribute it and/or modify it
32N/A * under the terms of the GNU General Public License version 2 only, as
32N/A * published by the Free Software Foundation.
32N/A *
32N/A * This code is distributed in the hope that it will be useful, but WITHOUT
32N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
32N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
32N/A * version 2 for more details (a copy is included in the LICENSE file that
32N/A * accompanied this code).
32N/A *
32N/A * You should have received a copy of the GNU General Public License version
32N/A * 2 along with this work; if not, write to the Free Software Foundation,
32N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
32N/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.
32N/A */
32N/A
32N/A/*
32N/A * @test
32N/A * @bug 6682380 6679509
32N/A * @summary Foreach loop with generics inside finally block crashes javac with -target 1.5
32N/A * @author Jan Lahoda, Maurizio Cimadamore
286N/A * @compile -source 1.5 -target 1.5 T6682380.java
32N/A */
32N/A
32N/Aimport java.util.List;
32N/A
32N/Apublic class T6682380<X> {
32N/A
32N/A public static void main(String[] args) {
32N/A try {
32N/A } finally {
32N/A List<T6682380<?>> l = null;
32N/A T6682380<?>[] a = null;
32N/A for (T6682380<?> e1 : l);
32N/A for (T6682380<?> e2 : a);
32N/A }
32N/A }
32N/A}