-
Bug
-
Resolution: Fixed
-
P5
-
1.3.0
-
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)
======================================================================