DA2.java revision 0
1686N/A/*
3261N/A * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
1686N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1686N/A *
1686N/A * This code is free software; you can redistribute it and/or modify it
1686N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation.
1686N/A *
2362N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1686N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1686N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1686N/A * version 2 for more details (a copy is included in the LICENSE file that
1686N/A * accompanied this code).
1686N/A *
1686N/A * You should have received a copy of the GNU General Public License version
1686N/A * 2 along with this work; if not, write to the Free Software Foundation,
1686N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1686N/A *
1686N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1686N/A * CA 95054 USA or visit www.sun.com if you need additional information or
2362N/A * have any questions.
2362N/A */
2362N/A
1686N/A/*
1686N/A * @test
1686N/A * @bug 5023177
1686N/A * @summary One can refer static, const static variables from instance initializers of enum
1686N/A * @author gafter
1686N/A *
1686N/A * @compile/fail -source 1.5 DA2.java
1686N/A */
1686N/A
1686N/Apackage da2;
1686N/A
1686N/Aenum T2 {
1686N/A ;
1686N/A static int N = 12;
1686N/A {
1686N/A int M = N;
1686N/A }
1686N/A}
1686N/A