Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312674

Summary: The "javax.annotation" bundle does not export .class files
Product: [Tools] Orbit Reporter: Oleg Besedin <ob1.eclipse>
Component: bundlesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: ob1.eclipse, pwebster
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 304844    
Attachments:
Description Flags
Patch none

Description Oleg Besedin CLA 2010-05-12 13:44:47 EDT
Created attachment 168211 [details]
Patch

The classes present in the "javax.annotation" bundle are not visible to regular Eclipse plugin. Comparing to "javax.inject" bundle, the following classpath entry is different:

working ("javax.inject"):
<classpathentry exported="true" kind="lib" path="" sourcepath="source-bundle"/>

non-working ("javax.annotations"):
<classpathentry kind="lib" path=""/>

I am not an expert in the ".classpath" file, but changing the entry to the "javax.inject"-style seems to fix the problem.
Comment 1 DJ Houghton CLA 2010-05-13 07:55:32 EDT
Released.