RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v27]

Khalid Boulanouare duke at openjdk.org
Sun Aug 31 09:06:55 UTC 2025


On Fri, 29 Aug 2025 04:28:58 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Khalid Boulanouare has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Disposes frames after each AWT component test
>>  - Removes redundant code for centring frames
>
> 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)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25971#discussion_r2312344617


More information about the client-libs-dev mailing list