Bug 82136

Summary: Interface with own Annotations not accessible when used as a library
Product: [Eclipse Project] JDT Reporter: Markus Brosch <mb.spam>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Demonstration - details see comment none

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