RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v11]
Sergey Bylokhov
serb at openjdk.org
Fri Feb 28 03:54:54 UTC 2025
On Tue, 25 Feb 2025 23:59:22 GMT, Alisen Chung <achung 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.
To some extent, yes, but the Robot class is part of AWT, which is a platform-dependent toolkit.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2689654446
More information about the client-libs-dev
mailing list