13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 6397298 6400986 6425592 6449798 6453386 6508401 6498938 6911854 27 * @summary Tests that getElementsAnnotatedWith works properly. 28 * @author Joseph D. Darcy 29 * @library /tools/javac/lib 30 * @build JavacTestingAbstractProcessor 31 * @compile TestElementsAnnotatedWith.java 32 * @compile InheritedAnnotation.java 33 * @compile -processor TestElementsAnnotatedWith -proc:only SurfaceAnnotations.java 34 * @compile -processor TestElementsAnnotatedWith -proc:only BuriedAnnotations.java 35 * @compile -processor TestElementsAnnotatedWith -proc:only Part1.java Part2.java 36 * @compile -processor TestElementsAnnotatedWith -proc:only C2.java 37 * @compile -processor TestElementsAnnotatedWith -proc:only Foo.java 38 * @compile Foo.java 39 * @compile/process -processor TestElementsAnnotatedWith -proc:only Foo 40 */ 41 42 import java.lang.annotation.Annotation; 43 import java.io.*; 44 import java.util.Collections; 45 import java.util.Set; 46 import java.util.HashSet; 47 import java.util.List; 48 import java.util.ArrayList; 49 import java.util.Arrays; 50 import javax.annotation.processing.*; 51 import javax.tools.*; 52 import javax.lang.model.SourceVersion; 53 import javax.lang.model.element.*; 54 import javax.lang.model.util.*; 55 import static javax.lang.model.util.ElementFilter.*; 56 57 /** | 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 6397298 6400986 6425592 6449798 6453386 6508401 6498938 6911854 27 * @summary Tests that getElementsAnnotatedWith works properly. 28 * @author Joseph D. Darcy 29 * @library /tools/javac/lib 30 * @build JavacTestingAbstractProcessor 31 * @compile TestElementsAnnotatedWith.java 32 * @compile InheritedAnnotation.java 33 * @compile TpAnno.java 34 * @compile -processor TestElementsAnnotatedWith -proc:only SurfaceAnnotations.java 35 * @compile -processor TestElementsAnnotatedWith -proc:only BuriedAnnotations.java 36 * @compile -processor TestElementsAnnotatedWith -proc:only Part1.java Part2.java 37 * @compile -processor TestElementsAnnotatedWith -proc:only C2.java 38 * @compile -processor TestElementsAnnotatedWith -proc:only Foo.java 39 * @compile -processor TestElementsAnnotatedWith -proc:only TypeParameterAnnotations.java 40 * @compile Foo.java 41 * @compile/process -processor TestElementsAnnotatedWith -proc:only Foo 42 */ 43 44 import java.lang.annotation.Annotation; 45 import java.io.*; 46 import java.util.Collections; 47 import java.util.Set; 48 import java.util.HashSet; 49 import java.util.List; 50 import java.util.ArrayList; 51 import java.util.Arrays; 52 import javax.annotation.processing.*; 53 import javax.tools.*; 54 import javax.lang.model.SourceVersion; 55 import javax.lang.model.element.*; 56 import javax.lang.model.util.*; 57 import static javax.lang.model.util.ElementFilter.*; 58 59 /** |