harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Molotkov Vladimir (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2818) Wrong exception handling in java.awt.EventDispatchThread causes VM hangup
Date Wed, 20 Dec 2006 14:13:21 GMT
Wrong exception handling in java.awt.EventDispatchThread causes VM hangup
-------------------------------------------------------------------------

                 Key: HARMONY-2818
                 URL: http://issues.apache.org/jira/browse/HARMONY-2818
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: any
            Reporter: Molotkov Vladimir
            Priority: Critical


Exception thrown from within run() method of Runnable passed to EventQueue.invokeLater() or
EventQueue.invokeAndWait() causes EventDispatchThread's main loop (and thus the thread itself)
 termination. This, in turn, leads to VM hangup while running constructs like:

...
        EventQueue.invokeLater(new Runnable()  {   public void run()  {   throw new RuntimeException("expected
from EDT");  } });
        EventQueue.invokeAndWait(new Runnable()  {   public void run() {  } });
...
or
...
        EventQueue.invokeAndWait(new Runnable()  {   public void run()  {   throw new RuntimeException("expected
from EDT");  } });
        EventQueue.invokeAndWait(new Runnable()  {   public void run() {  } });
...

Right behaviour for EventDispatchThread is to print catched Throwable's stack trace and continue
main loop (as the RI does).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message