You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2006/12/22 06:08:23 UTC

[jira] Closed: (HARMONY-2818) [classlib][awt] Wrong exception handling in java.awt.EventDispatchThread causes VM hangup

     [ http://issues.apache.org/jira/browse/HARMONY-2818?page=all ]

Alexey Petrenko closed HARMONY-2818.
------------------------------------

    Estimated Complexity: Moderate

> [classlib][awt] 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: Vladimir Molotkov
>         Assigned To: Alexey Petrenko
>            Priority: Critical
>         Attachments: 2818-EventDispatchThread.patch, 2818-EventDispatchThreadRegressionTests.path, edt.patch, edt_tests.patch
>
>
> 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