mcimadamore@94: /* ohair@554: * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. mcimadamore@94: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@94: * mcimadamore@94: * This code is free software; you can redistribute it and/or modify it mcimadamore@94: * under the terms of the GNU General Public License version 2 only, as mcimadamore@94: * published by the Free Software Foundation. mcimadamore@94: * mcimadamore@94: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@94: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@94: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@94: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@94: * accompanied this code). mcimadamore@94: * mcimadamore@94: * You should have received a copy of the GNU General Public License version mcimadamore@94: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@94: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@94: * 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@94: */ mcimadamore@94: mcimadamore@94: /* mcimadamore@94: * @test mcimadamore@94: * @bug 6676362 mcimadamore@94: * @summary Spurious forward reference error with final var + instance variable initializer mcimadamore@94: * @author Maurizio Cimadamore mcimadamore@94: * mcimadamore@94: * @compile T6676362a.java mcimadamore@94: */ mcimadamore@94: mcimadamore@94: public class T6676362a { mcimadamore@94: Object o = new Object() {Object m() {return o2;}}; mcimadamore@94: final Object o2 = o; mcimadamore@94: }