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

Alisen Chung achung at openjdk.org
Wed Feb 26 00:02:40 UTC 2025


On Thu, 6 Feb 2025 10:56:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> The Robot API is just a wrapper around the native API with a basic functionality that works across all platforms. If a native macOS application can move the mouse in a certain way, why should Java be restricted?

The problem is that different platforms have different behaviors. I think since Java behavior should be consistent across platforms, it should be changed to have it's own implementation rather than just be a wrapper around the native API.

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

PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2683556413


More information about the client-libs-dev mailing list