RFR: 8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!"
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Nov 30 08:01:08 UTC 2022
On Tue, 29 Nov 2022 23:10:56 GMT, Alisen Chung <achung at openjdk.org> wrote:
> Test was run on mac, windows, linux 50 times and passed after change
> Before fix, test fails about once every 50 runs on linux and windows platforms
test/jdk/java/awt/Mouse/EnterExitEvents/DragWindowTest.java line 58:
> 56:
> 57: Robot robot = new Robot();
> 58: robot.setAutoDelay(250);
We normally do not need so much delay for test to work, 100ms being the norm which has sufficed for other tests.
Maybe you need to wait robot.delay after creating and showing the GUI which is not done here.
Also, this test has heavyweight and lightweight mix, for ex. MyDragWindow class uses JPanel but not in EDT which can result in some timing issue you are seeing, either it needs to be in EDT or can it be changed to AWT Panel as done elsewhere in the test?
ALso, please change the wildcards imports while you are at it..
-------------
PR: https://git.openjdk.org/jdk/pull/11425
More information about the client-libs-dev
mailing list