RFR: 8305915: java/awt/Frame/FrameLocation/FrameLocation.java fails with "The frame location is wrong!"

Alexey Ivanov aivanov at openjdk.org
Thu Sep 18 18:49:45 UTC 2025


On Thu, 18 Sep 2025 18:28:51 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> The test passed on CI machines with multiple test runs. Few stabilization fix has been made to make the test more robust.
>
> test/jdk/java/awt/Frame/FrameLocation/FrameLocation.java line 54:
> 
>> 52:                 Thread.sleep(2000);
>> 53:             } catch (InterruptedException _) {
>> 54:             }
> 
> What's the point of this change? To make backporting the changeset more complicated?

If you still prefer to leave `Thread.sleep`, you can safely remove `try`-`catch` around it because `main` is declared to throw an exception.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27366#discussion_r2360661939


More information about the client-libs-dev mailing list