<AWT Dev> [JDK-8152974] AWT hang occurs when sequenced events
krishna.addepalli at oracle.com
Sat Feb 17 02:26:30 UTC 2018
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.
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> [JDK-8152974] AWT hang occurs when sequenced events
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