#9 Use weak references on AwtPenToolkit Component/PenListener

open
nobody
None
5
2011-06-29
2011-06-29
Nicolas Carranza
No

AwtPenToolkit.addPenListener(Component, PenListener) implementation (version 2-110623) stores the Component and PenListener using strong references which prevents them to be garbage collected if AwtPenToolkit.removePenListener isn't called.
Feature request: use WeakHashMap/WeakReference to store Components and PenListeners on AwtPenToolkit.

Discussion