Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4337229

GC, Inner classes, and Event handling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • x86
    • windows_98



      Name: skT45625 Date: 05/10/2000


      1.3RC2

      My problem is, that ListenerLists have to manually remove
      listeners, which they have. Otherwise the listener enclosing
      class will never get GCed. So the enclosing class has to save
      a copy of all its listeners, and of the objects they are
      registered at, and whoever uses the enclosing class needs to
      know when usage is done, and call some method which will trigger
      removal of its listeners from all ListenerLists, and only then
      it might get GCed.

      Having to keep track of all this disappoints me of Java, which
      is a garbage collected language, and can have a better constructs
      to avoid such manual memory management tasks.

      Please find a solution to this, and incorporate it into your
      awt&swing packages.
      (Review ID: 103272)
      ======================================================================

            pmilnesunw Philip Milne (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: