Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335673 - No FrameworkEvent generated for exceptions in a WeavingHook
Summary: No FrameworkEvent generated for exceptions in a WeavingHook
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 05:50 EST by Tim Ward CLA
Modified: 2011-02-16 15:53 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (3.68 KB, patch)
2011-02-07 11:28 EST, Thomas Watson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.