ExplicitlyFinalEnum2.java revision 288
869N/A/*
869N/A * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
869N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
869N/A *
869N/A * This code is free software; you can redistribute it and/or modify it
869N/A * under the terms of the GNU General Public License version 2 only, as
869N/A * published by the Free Software Foundation.
6983N/A *
6983N/A * This code is distributed in the hope that it will be useful, but WITHOUT
869N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
869N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
869N/A * version 2 for more details (a copy is included in the LICENSE file that
869N/A * accompanied this code).
6983N/A *
6983N/A * You should have received a copy of the GNU General Public License version
6983N/A * 2 along with this work; if not, write to the Free Software Foundation,
6983N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
869N/A *
869N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
869N/A * CA 95054 USA or visit www.sun.com if you need additional information or
869N/A * have any questions.
5005N/A */
7171N/A
7044N/A/*
869N/A * @test
869N/A * @bug 5009601
0N/A * @summary enum's cannot be explicitly declared final
0N/A * @author Joseph D. Darcy
0N/A *
0N/A * @compile/fail ExplicitlyFinalEnum2.java
869N/A */
0N/A
0N/Afinal enum ExplicitlyFinalEnum2 {
0N/A FE {
869N/A void foo() {return;}
0N/A };
869N/A
0N/A abstract void foo();
869N/A}
869N/A