mcimadamore@18: /* ohair@554: * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. mcimadamore@18: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@18: * mcimadamore@18: * This code is free software; you can redistribute it and/or modify it mcimadamore@18: * under the terms of the GNU General Public License version 2 only, as mcimadamore@18: * published by the Free Software Foundation. mcimadamore@18: * mcimadamore@18: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@18: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@18: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@18: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@18: * accompanied this code). mcimadamore@18: * mcimadamore@18: * You should have received a copy of the GNU General Public License version mcimadamore@18: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@18: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@18: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. mcimadamore@18: */ mcimadamore@18: mcimadamore@18: /* mcimadamore@18: * @test mcimadamore@18: * @bug 6509042 mcimadamore@18: * mcimadamore@18: * @summary javac rejects class literals in enum constructors mcimadamore@18: * @author Maurizio Cimadamore mcimadamore@18: * mcimadamore@18: * @compile T6509042.java mcimadamore@18: */ mcimadamore@18: enum T6509042 { mcimadamore@18: A, B; mcimadamore@18: mcimadamore@18: Class cl = T6509042.class; mcimadamore@18: mcimadamore@18: T6509042() { mcimadamore@18: Class cl2 = T6509042.class; mcimadamore@18: } mcimadamore@18: }