harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Molotkov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2818) [classlib][awt] Wrong exception handling in java.awt.EventDispatchThread causes VM hangup
Date Fri, 22 Dec 2006 05:04:24 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2818?page=comments#action_12460384 ] 
            
Vladimir Molotkov commented on HARMONY-2818:
--------------------------------------------

Alexey, thank you for quick responce!
I've verified the fix - no problems.

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