RFR: 8315986: javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location [v2]

Alexey Ivanov aivanov at openjdk.org
Thu Oct 5 15:20:09 UTC 2023


On Tue, 3 Oct 2023 00:17:32 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add setAutoWaitForIdle
>
> LGTM

Yesterday after talking to Harshitha @honkar-jdk, I also learned, there's an open bug [JDK-8316016](https://bugs.openjdk.org/browse/JDK-8316016): _getLocationOnScreen API returns incorrect values on macOS 14_.

If we suspect `getLocationOnScreen` returns incorrect coordinates, the delays won't fix the problem. However, the delays may help to alleviate the `getLocationOnScreen` bug so that it returns the correct coordinates.

But the root cause is misbehaving `getLocationOnScreen` rather than this test itself.

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

PR Comment: https://git.openjdk.org/jdk/pull/15677#issuecomment-1749076115


More information about the client-libs-dev mailing list