RFR: 6854300: [TEST_BUG] java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter_3.java fails in jdk6u14 & jdk7 [v2]

Alexander Zvegintsev azvegint at openjdk.java.net
Fri Oct 29 01:34:12 UTC 2021


On Thu, 28 Oct 2021 22:32:27 GMT, Sergey Bylokhov <serb at openjdk.org> 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



More information about the client-libs-dev mailing list