347 File cl_pkgInfo_java; |
348 File cl_pkgInfo_java; |
348 |
349 |
349 /** Annotation processor used to verify the expected value for the |
350 /** Annotation processor used to verify the expected value for the |
350 package annotations found by javac. */ |
351 package annotations found by javac. */ |
351 @SupportedOptions({ "gen", "expect" }) |
352 @SupportedOptions({ "gen", "expect" }) |
352 @SupportedAnnotationTypes({"*"}) |
353 public static class Processor extends JavacTestingAbstractProcessor { |
353 public static class Processor extends AbstractProcessor { |
|
354 public SourceVersion getSupportedSourceVersion() { |
|
355 return SourceVersion.latest(); |
|
356 } |
|
357 |
|
358 public boolean process(Set<? extends TypeElement> annots, RoundEnvironment renv) { |
354 public boolean process(Set<? extends TypeElement> annots, RoundEnvironment renv) { |
359 round++; |
355 round++; |
360 System.err.println("Round " + round + " annots:" + annots + " rootElems:" + renv.getRootElements()); |
356 System.err.println("Round " + round + " annots:" + annots + " rootElems:" + renv.getRootElements()); |
361 |
357 |
362 // if this is the first round and the gen option is given, use the filer to create |
358 // if this is the first round and the gen option is given, use the filer to create |