test/tools/javac/6902720/E2.java

Thu, 19 Nov 2009 11:49:27 -0800

author
jjg
date
Thu, 19 Nov 2009 11:49:27 -0800
changeset 439
b1bb8164a9bd
child 554
9d9f26857129
permissions
-rw-r--r--

6902720: javac pretty printer does not handle enums correctly
Reviewed-by: mcimadamore

jjg@439 1 /*
jjg@439 2 * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
jjg@439 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@439 4 *
jjg@439 5 * This code is free software; you can redistribute it and/or modify it
jjg@439 6 * under the terms of the GNU General Public License version 2 only, as
jjg@439 7 * published by the Free Software Foundation.
jjg@439 8 *
jjg@439 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@439 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@439 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@439 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@439 13 * accompanied this code).
jjg@439 14 *
jjg@439 15 * You should have received a copy of the GNU General Public License version
jjg@439 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@439 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@439 18 *
jjg@439 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@439 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@439 21 * have any questions.
jjg@439 22 */
jjg@439 23
jjg@439 24 enum E2 {
jjg@439 25 A(1),
jjg@439 26 B(2) { },
jjg@439 27 C(3) { void m() { } };
jjg@439 28 E2(int i) { }
jjg@439 29 }

mercurial