On Thu, 28 Oct 2021 22:32:27 GMT, Sergey Bylokhov <[email protected]> wrote:

>> Alexander Zvegintsev has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   more EDT
>
> test/jdk/java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter_3.java 
> line 97:
> 
>> 95:         r.delay(1000);
>> 96: 
>> 97:         Point centerA = new Point(comp.getLocationOnScreen().x + 
>> comp.getWidth() / 2,
> 
> I think the comp.getLocationOnScreen() should be moved to the EDT, and 
> probably that will solve the problem even w/o delay?

Done. 
Actually it will pass if you add `waitForIdle()` to the unmodified test, the 
delay was added just for safety.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6164

Reply via email to