Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361249 - BundleContext Stub does not remove services
Summary: BundleContext Stub does not remove services
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: unknown (show other bugs)
Version: 3.0.1.RELEASE   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.2.RELEASE   Edit
Assignee: Hristo Iliev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 07:48 EDT by Hristo Iliev CLA
Modified: 2011-11-16 08:45 EST (History)
0 users

See Also:


Attachments

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