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

Bug 335673

Summary: No FrameworkEvent generated for exceptions in a WeavingHook
Product: [Eclipse Project] Equinox Reporter: Tim Ward <timothyjward>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Tim Ward CLA 2011-01-28 05:50:21 EST
The Weaving Hook chapter of the OSGi 4.3 specification states that a Framework error should be generated when a weaving hook throws an exception. The current Equinox doesn't generate this event.
Comment 1 Thomas Watson CLA 2011-02-07 11:28:19 EST
Created attachment 188450 [details]
Proposed fix

A FrameworkEvent is generated, but we do not set the source bundle to the correct Bundle object.  It should be the Bundle which registered the bad hook.  Currently we set the source to the Bundle object which contains the class being woven.
Comment 2 Thomas Watson CLA 2011-02-16 15:53:50 EST
This was fixed along with bug334582 from the OSGI_R4_3_Wiring branch.