You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/10/02 09:16:25 UTC

[jira] [Resolved] (FELIX-4247) Memory leak with ServiceUsage and inner class (Listener style)

     [ https://issues.apache.org/jira/browse/FELIX-4247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-4247.
--------------------------------------

    Resolution: Fixed
      Assignee: Clement Escoffier

> 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
>            Assignee: Clement Escoffier
>             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)