1/* 2 * @test /nodynamiccopyright/ 3 * @bug 6365040 6358129 4 * @summary Test -processor foo,bar,baz 5 * @author Joseph D. Darcy 6 * @library /tools/javac/lib 7 * @modules java.compiler 8 * jdk.compiler 9 * @build JavacTestingAbstractProcessor 10 * @compile ProcFoo.java 11 * @compile ProcBar.java 12 * @compile T6365040.java 13 * @compile -processor ProcFoo,ProcBar,T6365040 -proc:only T6365040.java 14 * @compile -processor T6365040 -proc:only T6365040.java 15 * @compile -processor T6365040,NotThere, -proc:only T6365040.java 16 * @compile/fail/ref=T6365040.out -XDrawDiagnostics -processor NotThere -proc:only T6365040.java 17 * @compile/fail/ref=T6365040.out -XDrawDiagnostics -processor NotThere,T6365040 -proc:only T6365040.java 18 */ 19 20import java.util.Set; 21import javax.annotation.processing.AbstractProcessor; 22import javax.annotation.processing.RoundEnvironment; 23import javax.annotation.processing.SupportedAnnotationTypes; 24import javax.lang.model.element.TypeElement; 25import static javax.tools.Diagnostic.Kind.*; 26 27public class T6365040 extends JavacTestingAbstractProcessor { 28 public boolean process(Set<? extends TypeElement> annotations, 29 RoundEnvironment roundEnvironment) { 30 if (!roundEnvironment.processingOver()) 31 messager.printMessage(NOTE, "Hello from T6365040"); 32 return true; 33 } 34} 35