[
https://issues.apache.org/jira/browse/FELIX-4247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clement Escoffier updated FELIX-4247:
-------------------------------------
Fix Version/s: ipojo-runtime-1.10.2
ipojo-manipulator-1.10.2
Affects Version/s: ipojo-runtime-1.10.1
> Memory leak with ServiceUsage and inner class (Listener style)
> --------------------------------------------------------------
>
> Key: FELIX-4247
> URL: https://issues.apache.org/jira/browse/FELIX-4247
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: ipojo-runtime-1.10.1
> Reporter: Guillaume Sauthier
> Fix For: ipojo-manipulator-1.10.2, ipojo-runtime-1.10.2
>
>
> Assume that you have a @Component using a swing-like technology with a load
> of Listeners and callbacks.
> You'll probably write something like:
> {code:java}
> button.addClickListener(new ClickListener() {
> // boilerplate code
> myDependency.useIt();
> });
> {code}
> Where myDependency is a @Requires field.
> When the listener is executed, it is used from outside of the component (from
> iPOJO POV), its method is not intercepted and a reference is kept in
> ServiceUsage$Usage.
--
This message was sent by Atlassian JIRA
(v6.1#6144)