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

Bug 370258

Summary: [R5] Clarification for calls to ResolverHook.end
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.8.0 Juno   
Target Milestone: Juno M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Thomas Watson CLA 2012-01-31 13:33:34 EST
The OSGi R5 specification has a few clarifications for calling ResolverHook.end when exceptions are thrown by resolver hooks.

More text is being added to the specification to clarify that an exception from
any hook method, including end, will terminate the resolve operation. 

If begin method successfully returns a ResolverHook,
then end must always be called on that hook for normal and abnormal termination
of the resolve process. 

However, if the hook is made invalid because its creating ResolverHookFactory
service has been unregistered, then end must not be called.