Community
Participate
Working Groups
When an annotation is declared inside a generic type, it compiles OK, but it's not available at runtime (despite @Retention setting) when compiled with JDT 3.1M5a. The attached testcase fails in Eclipse but succeeds in JDK 1.5.0_01.
Created attachment 18973 [details] testcase that exhibits the problem
The problem comes from the ClassFile.isRuntimeAnnotation() that doesn't retrieve the tagBits using getAnnotationTagBits(). So I didn't retrieve the right tagBits. Fixed and released in HEAD. Regression test added in AnnotationTest.test122.
Verified in 20050330-0500