test/tools/javac/annotations/neg/pkg/AnonSubclassOnPkg.java

Fri, 10 Jan 2014 12:47:15 +0100

author
alundblad
date
Fri, 10 Jan 2014 12:47:15 +0100
changeset 2814
380f6c17ea01
permissions
-rw-r--r--

8028389: NullPointerException compiling annotation values that have bodies
Summary: Made sure anonymous class declarations inside class- and package-level annotations are properly entered.
Reviewed-by: jfranck

alundblad@2814 1 /*
alundblad@2814 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
alundblad@2814 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
alundblad@2814 4 *
alundblad@2814 5 * This code is free software; you can redistribute it and/or modify it
alundblad@2814 6 * under the terms of the GNU General Public License version 2 only, as
alundblad@2814 7 * published by the Free Software Foundation.
alundblad@2814 8 *
alundblad@2814 9 * This code is distributed in the hope that it will be useful, but WITHOUT
alundblad@2814 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
alundblad@2814 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
alundblad@2814 12 * version 2 for more details (a copy is included in the LICENSE file that
alundblad@2814 13 * accompanied this code).
alundblad@2814 14 *
alundblad@2814 15 * You should have received a copy of the GNU General Public License version
alundblad@2814 16 * 2 along with this work; if not, write to the Free Software Foundation,
alundblad@2814 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
alundblad@2814 18 *
alundblad@2814 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
alundblad@2814 20 * or visit www.oracle.com if you need additional information or have any
alundblad@2814 21 * questions.
alundblad@2814 22 */
alundblad@2814 23
alundblad@2814 24 package pkg;
alundblad@2814 25
alundblad@2814 26 @interface AnonSubclassOnPkg {
alundblad@2814 27 String value();
alundblad@2814 28 }

mercurial