[
https://issues.apache.org/jira/browse/FELIX-6178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Pauls closed FELIX-6178.
-----------------------------
> org.osgi.framework.Bundle#getServicesInUse returns services with usage count
> = 0
> --------------------------------------------------------------------------------
>
> Key: FELIX-6178
> URL: https://issues.apache.org/jira/browse/FELIX-6178
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-6.0.3
> Reporter: Renat Sabitov
> Assignee: Karl Pauls
> Priority: Major
> Fix For: framework-6.0.4
>
> Attachments: services_in_use.diff
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)