RFR: 8305825: getBounds API returns wrong value resulting in multiple Regression Test Failures on Ubuntu 23.04
Alexander Zvegintsev
azvegint at openjdk.org
Mon Dec 4 23:36:17 UTC 2023
On Mon, 4 Dec 2023 23:26:12 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
> Starting with Ubuntu 23.04, we are receiving a several PropertyNotify from the window manager(Mutter on Gnome shell) with zero window insets, and only after that an actual window insets.
> Our code is not ready for this, it uses the first received value. It affects all our JDK.
> This did not happen before, e.g. Ubuntu 22.04 has non-zero insets from the start.
>
> As a result, many tests fail on Ubuntu 23.04 and 23.10.
>
> The solution is to change these insets on the fly.
>
> This also means that some tests need some stabilization as they are not ready for such late arrival of window insets.
>
> Testing looks good.
test/jdk/ProblemList.txt line 461:
> 459: java/awt/KeyboardFocusmanager/ConsumeNextMnemonicKeyTypedTest/ConsumeForModalDialogTest/ConsumeForModalDialogTest.java 8302787 windows-all
> 460: java/awt/KeyboardFocusmanager/TypeAhead/MenuItemActivatedTest/MenuItemActivatedTest.java 8302787 windows-all
> 461: java/awt/KeyboardFocusmanager/ConsumeNextMnemonicKeyTypedTest/ConsumeNextMnemonicKeyTypedTest.java 8321303 linux-all
This intermittent issue is more reproducible after the fix, however it was there before.
I am able to reproduce it with various JDK 11, 17, 19, 21, 22 (more info and a reproducer is available [here](https://bugs.openjdk.org/browse/JDK-8321303))
test/jdk/ProblemList.txt line 655:
> 653: javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java 8233177 linux-all,windows-all
> 654:
> 655: javax/swing/JFrame/MaximizeWindowTest.java 8321289 linux-all
The test was supposed to fail on Linux, but it didn't because of the misreported size. [JDK-8321289](https://bugs.openjdk.org/browse/JDK-8321289)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16960#discussion_r1414630233
PR Review Comment: https://git.openjdk.org/jdk/pull/16960#discussion_r1414630613
More information about the client-libs-dev
mailing list