Bug 88446

Summary: [1.5] annotations declared inside generic classes are not visible at runtime
Product: [Eclipse Project] JDT Reporter: Rafal Krzewski <rafal>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase that exhibits the problem none

Description Rafal Krzewski CLA 2005-03-18 08:25:14 EST
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.
Comment 1 Rafal Krzewski CLA 2005-03-18 08:26:32 EST
Created attachment 18973 [details]
testcase that exhibits the problem
Comment 2 Olivier Thomann CLA 2005-03-18 10:34:54 EST
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.
Comment 3 Olivier Thomann CLA 2005-03-30 23:31:37 EST
Verified in 20050330-0500