< prev index next >

test/tools/javac/tree/ArrayTypeToString.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,34 **** /* * @test * @bug 8068737 * @summary Tests ArrayType.toString with type annotations present * @modules jdk.compiler/com.sun.tools.javac.code ! * @build ArrayTypeToString * @compile/ref=ArrayTypeToString.out -XDaccessInternalAPI -XDrawDiagnostics -processor ArrayTypeToString -proc:only ArrayTypeToString.java */ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; --- 24,35 ---- /* * @test * @bug 8068737 * @summary Tests ArrayType.toString with type annotations present * @modules jdk.compiler/com.sun.tools.javac.code ! * @library /tools/javac/lib ! * @build ArrayTypeToString JavacTestingAbstractProcessor * @compile/ref=ArrayTypeToString.out -XDaccessInternalAPI -XDrawDiagnostics -processor ArrayTypeToString -proc:only ArrayTypeToString.java */ import java.lang.annotation.ElementType; import java.lang.annotation.Retention;
*** 52,63 **** @interface Foo { int value(); } @SupportedAnnotationTypes("Foo") ! @SupportedSourceVersion(SourceVersion.RELEASE_9) ! public class ArrayTypeToString extends AbstractProcessor { @Foo(0) String @Foo(1)[] @Foo(2)[] @Foo(3)[] field; public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv) { for (TypeElement te : tes) { for (Element e : renv.getElementsAnnotatedWith(te)) { --- 53,63 ---- @interface Foo { int value(); } @SupportedAnnotationTypes("Foo") ! public class ArrayTypeToString extends JavacTestingAbstractProcessor { @Foo(0) String @Foo(1)[] @Foo(2)[] @Foo(3)[] field; public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv) { for (TypeElement te : tes) { for (Element e : renv.getElementsAnnotatedWith(te)) {
< prev index next >