Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4247

Memory leak with ServiceUsage and inner class (Listener style)

    XMLWordPrintableJSON

Details

    Description

      Assume that you have a @Component using a swing-like technology with a load of Listeners and callbacks.
      You'll probably write something like:

      button.addClickListener(new ClickListener() {
         // boilerplate code
         myDependency.useIt();
      });
      

      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.

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            clement.escoffier Clement Escoffier
            sauthieg Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: