Bug 82136 - Interface with own Annotations not accessible when used as a library
Summary: Interface with own Annotations not accessible when used as a library
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 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 09:50 EST by Markus Brosch CLA
Modified: 2005-02-16 09:34 EST (History)
0 users

See Also:


Attachments
Demonstration - details see comment (2.07 KB, application/octet-stream)
2005-01-04 10:31 EST, Markus Brosch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Brosch CLA 2005-01-04 09:50:36 EST
Hi All!

I have a library available as a jar file which uses extensive self defined
Annotations (Java 1.5) annotated on interfaces.

If I add this library (in a project) to the build path and attach the source,
all classes are browsable (the source code) except those which has self defined
annotations (it works fine in other IDE's). Also I can't implement those
interfaces which has self defined Annotations, as they are not seen by Eclipse?! 

Hope you understand the problem.
Best regards, Markus
Comment 1 Olivier Thomann CLA 2005-01-04 10:04:13 EST
Could you please provide a test case?
Comment 2 Markus Brosch CLA 2005-01-04 10:31:15 EST
Created attachment 16912 [details]
Demonstration - details see comment

Add this jar file to the build path of a project of your choice. Then try to
browse the source-files of the jar from inside Eclipse - works NOT for
MyInterface.java
Comment 3 Olivier Thomann CLA 2005-01-04 16:16:27 EST
The problem comes from a bug in the ClassFileReader. The consequence is that the
corresponding IClassFile doesn't exist for the MyInterface.class entry in the
jar file.
Fixed and released in HEAD.
Regression test added in AnnotationTest.test105.
Comment 4 David Audel CLA 2005-02-16 09:34:55 EST
Verified in I20050215-2300