<AWT Dev> [11][JDK-8152974] AWT hang occurs when sequenced events

Krishna Addepalli krishna.addepalli at oracle.com
Sat Feb 17 02:26:30 UTC 2018

Hi Sergey,

The event is present, but with the id "java.awt.event.FocusEvent.FOCUS_LAST+1", whereas when it is pumping the events, it is looking for "java.awt.event.FocusEvent.FOCUS_LAST+2", which is not in the queue.


-----Original Message-----
From: Sergey Bylokhov 
Sent: Saturday, February 17, 2018 1:49 AM
To: Krishna Addepalli <krishna.addepalli at oracle.com>; awt-dev at openjdk.java.net; Semyon Sadetsky <semyon.sadetsky at oracle.com>
Subject: Re: <AWT Dev> [11][JDK-8152974] AWT hang occurs when sequenced events

Hi, Krishna.
On 16/02/2018 00:42, Krishna Addepalli wrote:
> The SentEvent.ID value is "java.awt.event.FocusEvent.FOCUS_LAST+2", and when in the function pumpOneEventForFilters, it tries to call EventQueue.getNextEvent(id), it looks for SentEvent.ID, which is not present, and then the queue blocks in the hope that someone will post that event. This is what is leading to the hang.

But both events are posted by the test, why the second event is not present in the queue?

Best regards, Sergey.

More information about the awt-dev mailing list