harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2818) [classlib][awt] Wrong exception handling in java.awt.EventDispatchThread causes VM hangup
Date Thu, 21 Dec 2006 13:10:26 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2818?page=all ]

Alexey Petrenko resolved HARMONY-2818.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [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

        

Mime
View raw message