-
Bug
-
Resolution: Fixed
-
P4
-
7
-
generic
-
generic
-
Verified
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
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
- relates to
-
JDK-6861837 JCK compilation failures
-
- Closed
-
-
JDK-6876892 JSR 308 type annotations not visible when processing class files
-
- Closed
-
-
JDK-6872011 Update printing processor to support JSR 308
-
- Closed
-