JDK-6174747 : awt/src/AWT_Component/Automated/ComponentLeakTest
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-06
  • Updated: 2011-01-19
  • Resolved: 2004-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b15Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
java version "awt.pit-awt-blade-2004-09-29-Wed-int.mustang"
Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-awt-blade-2004-09-29-Wed-int.mustang)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b05, mixed mode)

awt/src/AWT_Component/Automated/ComponentLeakTest testcase (also attatched with this report) fails consistently with the pit build of PIT-SEP-28-2004.
The following excpetion is thrown:
java.lang.RuntimeException: Frame not finalized
        at ComponentLeakTest.start(ComponentLeakTest.java:132)
        at sun.applet.AppletPanel.run(AppletPanel.java:441)
        at java.lang.Thread.run(Thread.java:595)
This failiure is seen on all pit configs(LinuxAS3.0, Cinnabar,Solaris10, WinXp)The test had passed with 1.6.0 build 04.
###@###.### 10/6/04 06:00 GMT
###@###.### 10/6/04 06:20 GMT

Comments
EVALUATION A regression of #4952802. IdentityHashMap used to hold a map of components which uses events' coalesce and this map has never been cleared. This means that this map holds the link on a particular Component which may not been gced. It seems that this fix affects serialization too, because private constructor of Component where initialization of map occur will not invoke during deserialization. Possible solutions is to use WeakReference on Component instead of a Component in IdentityHashMap since a WeakReferences could be gced. ###@###.### 10/6/04 17:09 GMT Attached test is also located in test/java/awt/Component/ComponentLeakTest/ ###@###.### 10/7/04 10:07 GMT
06-10-2004