772N/A/*
772N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
772N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
772N/A *
772N/A * This code is free software; you can redistribute it and/or modify it
772N/A * under the terms of the GNU General Public License version 2 only, as
772N/A * published by the Free Software Foundation.
772N/A *
772N/A * This code is distributed in the hope that it will be useful, but WITHOUT
772N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
772N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
772N/A * version 2 for more details (a copy is included in the LICENSE file that
772N/A * accompanied this code).
772N/A *
772N/A * You should have received a copy of the GNU General Public License version
772N/A * 2 along with this work; if not, write to the Free Software Foundation,
772N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
772N/A *
772N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
772N/A * or visit www.oracle.com if you need additional information or have any
772N/A * questions.
772N/A */
772N/A
772N/A/*
772N/A * @test
772N/A * @bug 7003744 6999622
772N/A * @summary Compiler error concerning final variables
772N/A * @author mcimadamore
772N/A *
772N/A * @compile T7003744b.java
772N/A */
772N/A
772N/Aclass T7003744b {
772N/A void test() {
772N/A final int bogus;
772N/A
772N/A for (int i1 = 0, i2 = 2; i1 < i2; i1++) {
772N/A final int i_1 = 2;
772N/A }
772N/A for (Object o : new Object[] { null }) {
772N/A final int i_2 = 2;
772N/A }
772N/A
772N/A bogus = 4;
772N/A }
772N/A}