RFR: JDK-8222323: ChildAlwaysOnTopTest.java fails with "RuntimeException: Failed to unset alwaysOnTop"
Harshitha Onkar
duke at openjdk.java.net
Mon May 2 21:09:57 UTC 2022
This test case tests the functionality of `setAlwaysOnTop`.
Documentation on `setAlwaysOnTop`: [Link](https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Window.html#setAlwaysOnTop(boolean))
The following test case was seen to fail on windows and linux platforms. With the proposed fix, the test case works on all platforms.
The test case tests `alwaysOnTop` for the following three cases:
1. JDialog with no parent/owner
2. JDialog with JFrame as owner
3. JDialog with another JDialog as owner
Each of the three cases mentioned above is tested under 3 scenarios:

-------------
Commit messages:
- test case changes for alwaysOnTop
Changes: https://git.openjdk.java.net/jdk/pull/8509/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8509&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8222323
Stats: 203 lines in 2 files changed: 106 ins; 9 del; 88 mod
Patch: https://git.openjdk.java.net/jdk/pull/8509.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8509/head:pull/8509
PR: https://git.openjdk.java.net/jdk/pull/8509
More information about the client-libs-dev
mailing list