[
https://issues.apache.org/jira/browse/FELIX-4806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved FELIX-4806.
-------------------------------------
Resolution: Fixed
Fixed by keeping the state in the usage object which is a per bundle/ref object
that already exists. This avoids keeping an extra list of services
> Ungetting service through ServiceObjects might throw IllegalArgumentException
> -----------------------------------------------------------------------------
>
> Key: FELIX-4806
> URL: https://issues.apache.org/jira/browse/FELIX-4806
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-4.6.0
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: framework-4.8.0
>
>
> Currently the ServiceObjects object for a reference is not a singleton per
> bundle, it's creating a fresh instance on each call. Therefore if a servce
> object is get and then unget via a new instance of ServiceObjects an
> IllegalArgumentException is thrown.
> In addition, keeping a list of services that were get through the
> ServiceObjects object might lead to a memory leak if that objects is kept by
> the client
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)