-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0
-
beta2
-
x86
-
windows_2000
Name: boT120536 Date: 02/22/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
Although bug#4180832 (Reference from input method prevents Garbage Collection
on client component) is marked as "Closed, fixed in 1.2.2", it still has a
leak: the awtFocussedComponent instance variable from
sun.awt.windows.WInputMethod still refers to a deleted component.
The following code from the (platform independent) class
sun.awt.im.InputContext may give some problems in combination with the
platform dependent implementation of InputMethod:
/* lines 377-380 from sun.awt.im.InputContext version 1.38 of 00/02/02 */
awtFocussedComponent = null;
if (inputMethod instanceof InputMethodAdapter) {
((InputMethodAdapter) inputMethod).setAWTFocussedComponent(null);
}
/* end */
/* lines 302-306 from sun.awt.windows.WInputMethod version 1.43 of 00/02/02 */
protected void setAWTFocussedComponent(Component component) {
if (component == null) {
return;
}
/* end */
Hope this helps,
Mark Scheffer.
(Review ID: 117356)
======================================================================