2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-09 06:01:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6365040 6358129
|
|
|
|
* @summary Test -processor foo,bar,baz
|
|
|
|
* @author Joseph D. Darcy
|
2012-12-21 16:45:43 +00:00
|
|
|
* @library /tools/javac/lib
|
2015-05-21 18:41:04 +00:00
|
|
|
* @modules java.compiler
|
|
|
|
* jdk.compiler
|
2010-09-30 06:27:57 +00:00
|
|
|
* @build JavacTestingAbstractProcessor
|
2007-12-01 00:00:00 +00:00
|
|
|
* @compile ProcFoo.java
|
|
|
|
* @compile ProcBar.java
|
|
|
|
* @compile T6365040.java
|
|
|
|
* @compile -processor ProcFoo,ProcBar,T6365040 -proc:only T6365040.java
|
|
|
|
* @compile -processor T6365040 -proc:only T6365040.java
|
|
|
|
* @compile -processor T6365040,NotThere, -proc:only T6365040.java
|
2015-01-09 06:01:20 +00:00
|
|
|
* @compile/fail/ref=T6365040.out -XDrawDiagnostics -processor NotThere -proc:only T6365040.java
|
|
|
|
* @compile/fail/ref=T6365040.out -XDrawDiagnostics -processor NotThere,T6365040 -proc:only T6365040.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
import javax.annotation.processing.AbstractProcessor;
|
|
|
|
import javax.annotation.processing.RoundEnvironment;
|
|
|
|
import javax.annotation.processing.SupportedAnnotationTypes;
|
|
|
|
import javax.lang.model.element.TypeElement;
|
2021-09-01 20:28:05 +00:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2010-09-30 06:27:57 +00:00
|
|
|
public class T6365040 extends JavacTestingAbstractProcessor {
|
2007-12-01 00:00:00 +00:00
|
|
|
public boolean process(Set<? extends TypeElement> annotations,
|
|
|
|
RoundEnvironment roundEnvironment) {
|
|
|
|
if (!roundEnvironment.processingOver())
|
2021-09-01 20:28:05 +00:00
|
|
|
messager.printNote("Hello from T6365040");
|
2007-12-01 00:00:00 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|