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

Alexander Zvegintsev azvegint at openjdk.java.net
Thu Oct 28 20:29:28 UTC 2021


Test trying to call `button.getLocationOnScreen()` when its frame not yet fully configured, so the obtained button location is shifted by window's height. 

Waiting a bit after `setVisible()` call fixes the issue. Some cleanup was made also. Testing is green on all platforms.

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

Commit messages:
 - EDT
 - initial

Changes: https://git.openjdk.java.net/jdk/pull/6164/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6164&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-6854300
  Stats: 61 lines in 2 files changed: 32 ins; 4 del; 25 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6164.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6164/head:pull/6164

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



More information about the client-libs-dev mailing list