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 A. Ivanov (JIRA)" <ji...@apache.org> on 2006/12/04 13:04:21 UTC

[jira] Created: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

[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


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

        

[jira] Resolved: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess resolved HARMONY-2412.
-----------------------------------

    Resolution: Fixed
      Assignee: Mark Hindess

Applied patches in r495713.  Please verify that they have been applied as expected.


> [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2412
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2412
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Mark Hindess
>         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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey A. Ivanov closed HARMONY-2412.
-------------------------------------


It's fine. Thank you, Mark.

> [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2412
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2412
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Mark Hindess
>         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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2412?page=all ]

Alexey A. Ivanov updated HARMONY-2412:
--------------------------------------

    Attachment: H2412-EventQueueTest.patch

I've created a regression test case which fail on Harmony:

java.awt.EventQueueTest
testInvokeAndWait(java.awt.EventQueueTest)
junit.framework.AssertionFailedError
	at java.awt.EventQueueTest.testInvokeAndWait(EventQueueTest.java:32)

That is assertNotNull(event) fails.

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

        

[jira] Updated: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2412?page=all ]

Alexey A. Ivanov updated HARMONY-2412:
--------------------------------------

              Patch Info: [Patch Available]
    Estimated Complexity: Advanced

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

        

[jira] Updated: (HARMONY-2412) [classlib][awt] j.a.EventQueue.getCurrentEvent() returns null inside invokeAndWait()

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ 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