test/tools/javac/ForwardReference/T6676362a.java

Tue, 25 May 2010 15:54:51 -0700

author
ohair
date
Tue, 25 May 2010 15:54:51 -0700
changeset 554
9d9f26857129
parent 94
6542933af8f4
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6943119: Rebrand source copyright notices
Reviewed-by: darcy

mcimadamore@94 1 /*
ohair@554 2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
mcimadamore@94 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@94 4 *
mcimadamore@94 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@94 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@94 7 * published by the Free Software Foundation.
mcimadamore@94 8 *
mcimadamore@94 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@94 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@94 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@94 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@94 13 * accompanied this code).
mcimadamore@94 14 *
mcimadamore@94 15 * You should have received a copy of the GNU General Public License version
mcimadamore@94 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@94 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@94 18 *
ohair@554 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554 20 * or visit www.oracle.com if you need additional information or have any
ohair@554 21 * questions.
mcimadamore@94 22 */
mcimadamore@94 23
mcimadamore@94 24 /*
mcimadamore@94 25 * @test
mcimadamore@94 26 * @bug 6676362
mcimadamore@94 27 * @summary Spurious forward reference error with final var + instance variable initializer
mcimadamore@94 28 * @author Maurizio Cimadamore
mcimadamore@94 29 *
mcimadamore@94 30 * @compile T6676362a.java
mcimadamore@94 31 */
mcimadamore@94 32
mcimadamore@94 33 public class T6676362a {
mcimadamore@94 34 Object o = new Object() {Object m() {return o2;}};
mcimadamore@94 35 final Object o2 = o;
mcimadamore@94 36 }

mercurial