1 /******************************************************************************* 2 * Copyright (c) 2008, 2009 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package a.b.c; 15 16 /** 17 * Test unsupported tags on fields in outer / inner annotation 18 */ 19 public @interface test9 { 20 @interface inner { 21 /** 22 * @nooverride 23 * @noimplement 24 * @noinstantiate 25 * @noextend 26 * @noreference 27 * @return 28 */ m1()29 public int m1(); 30 31 /** 32 * @nooverride 33 * @noimplement 34 * @noinstantiate 35 * @noextend 36 * @noreference 37 * @return 38 */ m2()39 public abstract char m2(); 40 @interface inner2 { 41 /** 42 * @nooverride 43 * @noimplement 44 * @noinstantiate 45 * @noextend 46 * @noreference 47 * @return 48 */ m1()49 public int m1(); 50 51 /** 52 * @nooverride 53 * @noimplement 54 * @noinstantiate 55 * @noextend 56 * @noreference 57 * @return 58 */ m2()59 public abstract char m2(); 60 } 61 } 62 } 63 64 @interface outer { 65 /** 66 * @nooverride 67 * @noimplement 68 * @noinstantiate 69 * @noextend 70 * @noreference 71 * @return 72 */ m1()73 public int m1(); 74 75 /** 76 * @nooverride 77 * @noimplement 78 * @noinstantiate 79 * @noextend 80 * @noreference 81 * @return 82 */ m2()83 public abstract char m2(); 84 } 85