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

Bug 329330

Summary: Bundle.getResource() returns null for local resource when bundle can't be resolved
Product: [Eclipse Project] Equinox Reporter: Sahoo <sanjeeb.sahoo>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: unspecified   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch none

Description Sahoo CLA 2010-11-03 06:46:48 EDT
Build Identifier: 3.6.1.R36x_v20100806

The spec says that Bundle.getResource() must be able to return resources that are local to the bundle even if the bundle can't be resolved, yet I see that Equinox returns null in such a case. Felix succeeds for the same  test case.

Reproducible: Always
Comment 1 Thomas Watson CLA 2010-11-03 10:00:36 EDT
True.  Will fix for 3.7.
Comment 2 Thomas Watson CLA 2010-12-03 11:01:45 EST
I have looked into fixing this.  While I could provide a quick fix it would be quite a hack.  I am going to use this bug as an opportunity to clean up some of the management of the bundle files.  Not for M4.
Comment 3 Thomas Watson CLA 2010-12-10 14:21:11 EST
Created attachment 184980 [details]
patch

I released this patch to HEAD.  The OSGi CT has been updated to test for this also.
Comment 4 Thomas Watson CLA 2010-12-10 14:21:25 EST
.