Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
framework-6.0.3
-
None
-
Patch
Description
org.osgi.framework.Bundle#getServicesInUse ultimately using org.apache.felix.framework.ServiceRegistry#getServicesInUse, which doesn't take into account usage count of the service references it has.
In result, the array of services returned contains services with usage count == 0, i.e. no longer used services.
see services_in_use.diff which contains a fix and a test for it.
Note that I had to modify dependency management to avoid problems with conflicting versions of hamcrest between junit and mockito.
Attachments
Attachments
Issue Links
- relates to
-
FELIX-5485 ServiceReference#getUsingBundles() returns usages with 0 count
- Closed