Bug 88446 - [1.5] annotations declared inside generic classes are not visible at runtime
Summary: [1.5] annotations declared inside generic classes are not visible at runtime
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 08:25 EST by Rafal Krzewski CLA
Modified: 2005-03-30 23:31 EST (History)
0 users

See Also:


Attachments
testcase that exhibits the problem (1.18 KB, application/octet-stream)
2005-03-18 08:26 EST, Rafal Krzewski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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