RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v3]

Alexey Ivanov aivanov at openjdk.org
Fri Dec 20 14:02:37 UTC 2024


On Fri, 20 Dec 2024 00:47:18 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> For this test you can add a null check before calling .getLocation() for sanity (although multimonitor setup is not the case for CI runs)

If `Robot.mouseMove` is expected to limit mouse to the valid (virtual screen) coordinates, `MouseInfo.getPointerInfo()` should never throw `NullPointerException` if mouse is available.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22781#discussion_r1893973923


More information about the client-libs-dev mailing list