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

Bug 361249

Summary: BundleContext Stub does not remove services
Product: [RT] Virgo Reporter: Hristo Iliev <hsiliev>
Component: unknownAssignee: Hristo Iliev <hsiliev>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1.RELEASE   
Target Milestone: 3.0.2.RELEASE   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Hristo Iliev CLA 2011-10-18 07:48:12 EDT
The BundleContext test stub does not remove services on ServiceRegistration.unregister()

This results in incorrect service references returned by BundleContext.getServiceReference() and BundleContext.getServiceReferences() methods.

BundleContext.getService(ServiceReference) handles this by checking for unregistered flag of the argument reference
Comment 1 Hristo Iliev CLA 2011-10-18 07:51:03 EDT
Services are now removed with commit fd6573dcbd7a71d5286eb1027eb27683472be21c.

The test for unregistered service now checks the references as well.
Comment 2 Hristo Iliev CLA 2011-11-16 08:45:11 EST
Cherry picked in 3.0.2 with 9606c08dd0011e0cce27ab7fa8fbc124eae5d604