Tue, 02 Feb 2010 10:56:10 -0800
6918625: handle annotations on array class literals
Reviewed-by: jjg, darcy
Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
mcimadamore@94 | 1 | /* |
mcimadamore@94 | 2 | * Copyright 2008 Sun Microsystems, Inc. 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 | * |
mcimadamore@94 | 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
mcimadamore@94 | 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
mcimadamore@94 | 21 | * have any 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 | } |