|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
The JSR 308 type annotations on type parameters are not visible when doing the
annotation processing of java *source* files starting b70. For example, if I compile the sample class T below and run my simple annotation processor (source attached) that prints the contents of a processed java class, then the "@X" annotation on the "A" type variable is not printed out:
====
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@interface X {}
public class T {
public <@X A> void foo() {}
}
====
# jdk7_b70/bin/javac MyProcessor.java T.java
# jdk7_b70/bin/javac -processor MyProcessor T.java
TypeParam: A
TypeParamAnnotation:
However, the annotation processing of the java source works fine with b64 - b69:
# jdk7_69/bin/javac -processor MyProcessor T.java
TypeParam: A
TypeParamAnnotation: @X
|