RFR: 8352149: open/test/jdk/java/awt/Frame/MultiScreenTest.java fails in MacOS

Abhishek Kumar abhiscxk at openjdk.org
Thu Apr 24 05:05:40 UTC 2025


On Fri, 18 Apr 2025 13:10:10 GMT, Khalid Boulanouare <duke at openjdk.org> wrote:

> Fixes issue in which the test fails when run on multi-screen machine.
> 
> Tested on Ubuntu 24.04, MacOS 15 and Windows 11
> 
> JTREG
> 
> runner starting test: java/awt/Frame/MultiScreenTest.java
> runner finished test: java/awt/Frame/MultiScreenTest.java
> Passed. Execution successful

test/jdk/java/awt/Frame/MultiScreenTest.java line 105:

> 103:         }
> 104:         GraphicsConfiguration[] gc = primaryDevice.getConfigurations();
> 105:         if (gc.length > 0) {

Why did you remove the for-loop?

I tested your changes on multi-monitor system on Linux platform but don't see any frames created for second screen. There is only one frame created for primary screen.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24752#discussion_r2057539932


More information about the client-libs-dev mailing list