On Tue, 29 Sep 2026 08:03:09 GMT, Jayathirth D V <[email protected]> wrote:

>I don't think using EDT for getLocationOnScreen() can cause synchronization 
>issues in this test.

There is no harm for sure; my point is the opposite: the usage of EDT here 
makes the code more synchronized, and because of that we can miss the real bug 
where at least EDT/main/toolkit threads work with a frame in parallel, and all 
that should be properly synchronized. EDT should be used only for Swing, where 
all/most accesses from all threads are implemented by posting events.

> Expectation from test that moving coordinates in user space and using robot 
> to get same pixel in fractional calling is not right. 

Why is it not right? It is our code that converts the user-space coordinates to 
device space and back. In this case, even if there are some rounding errors, 
why could it be that large, from "3" to "-3"?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32764#discussion_r4141003003

Reply via email to