harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()
Date Mon, 04 Dec 2006 12:16:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2412?page=all ]

Alexey A. Ivanov updated HARMONY-2412:

    Attachment: H2412-EventQueueCore.patch

The currentEvent field in EventQueueCore was not updated when an ActiveEvent was dispatched.

I've used finally section to set the currentEvent to null after ActiveEvent is dispatched
in dispatchEventImpl() as well as in the dispatchEvent().

Other events processed in dispatchEventImpl() should be checked whether EventQueue.getCurrentEvent()
returns the correct result.

> [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()
> ------------------------------------------------------------------------------------
>                 Key: HARMONY-2412
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2412
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Attachments: H2412-EventQueueCore.patch, H2412-EventQueueTest.patch
> java.awt.EventQueue.invokeAndWait is implemented by posting an instance of InvocationEvent
to the event queue. When the Runnable is executed the current event in the EventQueue is null
on Harmony.

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


View raw message