felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Sauthier (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4247) Memory leak with ServiceUsage and inner class (Listener style)
Date Fri, 27 Sep 2013 13:13:02 GMT
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
You'll probably write something like:
button.addClickListener(new ClickListener() {
   // boilerplate 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

View raw message