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