Wed, 26 Jan 2011 13:45:25 -0800
7013272: Automatically generate info about how compiler resource keys are used
Reviewed-by: mcimadamore
mcimadamore@18 | 1 | /* |
ohair@554 | 2 | * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@18 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@18 | 4 | * |
mcimadamore@18 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@18 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@18 | 7 | * published by the Free Software Foundation. |
mcimadamore@18 | 8 | * |
mcimadamore@18 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@18 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@18 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@18 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@18 | 13 | * accompanied this code). |
mcimadamore@18 | 14 | * |
mcimadamore@18 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@18 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@18 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@18 | 18 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * questions. |
mcimadamore@18 | 22 | */ |
mcimadamore@18 | 23 | |
mcimadamore@18 | 24 | /* |
mcimadamore@18 | 25 | * @test |
mcimadamore@18 | 26 | * @bug 6509042 |
mcimadamore@18 | 27 | * |
mcimadamore@18 | 28 | * @summary javac rejects class literals in enum constructors |
mcimadamore@18 | 29 | * @author Maurizio Cimadamore |
mcimadamore@18 | 30 | * |
mcimadamore@18 | 31 | * @compile T6509042.java |
mcimadamore@18 | 32 | */ |
mcimadamore@18 | 33 | enum T6509042 { |
mcimadamore@18 | 34 | A, B; |
mcimadamore@18 | 35 | |
mcimadamore@18 | 36 | Class<T6509042> cl = T6509042.class; |
mcimadamore@18 | 37 | |
mcimadamore@18 | 38 | T6509042() { |
mcimadamore@18 | 39 | Class<T6509042> cl2 = T6509042.class; |
mcimadamore@18 | 40 | } |
mcimadamore@18 | 41 | } |