RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v27]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Sep 3 04:01:51 UTC 2025
On Sun, 31 Aug 2025 09:04:28 GMT, Khalid Boulanouare <duke at openjdk.org> wrote:
>> test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java line 63:
>>
>>> 61: {
>>> 62: multiFramesTest = false;
>>> 63: }
>>
>> what is this for?
>
> The GlassPaneOverlappingTestBase tests are not multi-frame tests, they do not use multiple frames where each frame has an AWT component to test Swing with that AWT component. If the frame is disposed in the SimpleOverlappingTestBase class, the frame will disappear and the test will fail. This applies only the the GlassPane tests (extending GlassPaneOverlappingTestBase)
But the frame should be disposed *after* the test is executed, more specifically in finally block so am still not sure about this addition
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25971#discussion_r2317693101
More information about the client-libs-dev
mailing list