JDK-6847599 : closed/java/awt/EventDispatchThread/ExceptionHandler.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-06-03
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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 7
7 b64Fixed
Related Reports
Relates :  
Description
The test fails on linux-i586, Gnome/Metacity 2.24 with the current JDK 7 (~ b59):

----------System.err:(11/766)----------
java.lang.RuntimeException: Catch me!
	at ExceptionHandler$1.run(ExceptionHandler.java:25)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:235)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:603)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Catch me!
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Catch me!


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Catch me!

Comments
EVALUATION To catch all the exceptions (including those happened on EDT), Thread.setUncaughtExceptionHandler() or ThreadGroup.uncaughtException() should be used.
25-06-2009

EVALUATION "sun.awt.exception.handler" is no longer a valid property.
23-06-2009