test/tools/javac/processing/T6920317.java

Print this page

        

*** 23,32 **** --- 23,33 ---- /* * @test * @bug 6920317 * @summary package-info.java file has to be specified on the javac cmdline, else it will not be avail + * @library ../lib */ import java.io.*; import java.util.*; import javax.annotation.processing.*;
*** 347,362 **** File cl_pkgInfo_java; /** Annotation processor used to verify the expected value for the package annotations found by javac. */ @SupportedOptions({ "gen", "expect" }) ! @SupportedAnnotationTypes({"*"}) ! public static class Processor extends AbstractProcessor { ! public SourceVersion getSupportedSourceVersion() { ! return SourceVersion.latest(); ! } ! public boolean process(Set<? extends TypeElement> annots, RoundEnvironment renv) { round++; System.err.println("Round " + round + " annots:" + annots + " rootElems:" + renv.getRootElements()); // if this is the first round and the gen option is given, use the filer to create --- 348,358 ---- File cl_pkgInfo_java; /** Annotation processor used to verify the expected value for the package annotations found by javac. */ @SupportedOptions({ "gen", "expect" }) ! public static class Processor extends JavacTestingAbstractProcessor { public boolean process(Set<? extends TypeElement> annots, RoundEnvironment renv) { round++; System.err.println("Round " + round + " annots:" + annots + " rootElems:" + renv.getRootElements()); // if this is the first round and the gen option is given, use the filer to create