0N/A/*
0N/A * @test /nodynamiccopyright/
0N/A * @bug 6362067
0N/A * @summary Messager methods do not print out source position information
698N/A * @library ../../../lib
698N/A * @build JavacTestingAbstractProcessor T6362067
0N/A * @compile -processor T6362067 -proc:only T6362067.java
610N/A * @compile/ref=T6362067.out -XDrawDiagnostics -processor T6362067 -proc:only T6362067.java
0N/A */
0N/Aimport java.util.Set;
0N/Aimport javax.annotation.processing.*;
0N/Aimport javax.lang.model.element.*;
0N/Aimport static javax.tools.Diagnostic.Kind.*;
0N/A
698N/A@Deprecated // convenient test annotations
698N/A@SuppressWarnings({""})
698N/Apublic class T6362067 extends JavacTestingAbstractProcessor {
0N/A public boolean process(Set<? extends TypeElement> annos,
0N/A RoundEnvironment roundEnv) {
698N/A
0N/A for (Element e: roundEnv.getRootElements()) {
698N/A messager.printMessage(NOTE, "note:elem", e);
0N/A for (AnnotationMirror a: e.getAnnotationMirrors()) {
698N/A messager.printMessage(NOTE, "note:anno", e, a);
0N/A for (AnnotationValue v: a.getElementValues().values()) {
698N/A messager.printMessage(NOTE, "note:value", e, a, v);
0N/A }
0N/A }
0N/A }
698N/A
0N/A if (roundEnv.processingOver())
698N/A messager.printMessage(NOTE, "note:nopos");
0N/A return true;
0N/A }
0N/A}