You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2013/09/27 15:13:02 UTC
[jira] [Created] (FELIX-4247) Memory leak with ServiceUsage and
inner class (Listener style)
Guillaume Sauthier created FELIX-4247:
-----------------------------------------
Summary: 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
Reporter: Guillaume Sauthier
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira