JDK-4201961 : Getting exception in java.awt.Toolkit$ToolkitEventMulticaster.remove()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_2.6
  • CPU: x86
  • Submitted: 1999-01-09
  • Updated: 2005-07-05
  • Resolved: 2005-07-05
Related Reports
Relates :  
Description

Name: dbT83986			Date: 01/09/99


I am getting the following exception when destroying certain Swing
components:

java.lang.ClassCastException: java.awt.AWTEventMulticaster
	at java.awt.Toolkit$ToolkitEventMulticaster.remove(Compiled Code)
	at java.awt.Toolkit.removeAWTEventListener(Compiled Code)
	at java.awt.LightweightDispatcher$2.run(Compiled Code)
	at java.security.AccessController.doPrivileged(Compiled Code)
	at java.awt.LightweightDispatcher.stopListeningForOtherDrags(Compiled Code)
	at java.awt.LightweightDispatcher.trackMouseEnterExit(Compiled Code)
	at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
	at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
	at java.awt.Container.dispatchEventImpl(Compiled Code)
	at java.awt.Window.dispatchEventImpl(Compiled Code)
	at java.awt.Component.dispatchEvent(Compiled Code)
	at java.awt.EventQueue.dispatchEvent(Compiled Code)
	at java.awt.EventDispatchThread.run(Compiled Code)

My JVM version is:

java version "java1.2"
Solaris VM (build Solaris_JDK_1.2_01_dev05_fcsK, native threads, sunwjit)

The problem is flaky and hard to reproduce. It occurs when I close a dialog
via X Windows (i.e. through the title bar menu).
(Review ID: 48094)
======================================================================

Comments
EVALUATION Seems to be related to 4178589. There is a need to override remove(EventListener). According to description its hard to reproduce and there is no test to look into. Just a JFrame? ###@###.### 2005-07-01 10:49:48 GMT
01-07-2005