JDK-8196030 : AWT Robot mouseMove fails on Windows 10 1709 with HiDPI
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9,10,11
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-24
  • Updated: 2019-11-11
  • Resolved: 2018-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b18Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
To reproduce, run the attached test program on a Windows 10 system with the Windows 10 1709 (the Fall Creators update) with screen scale set to 125% or greater. It will fail to move the mouse to the correct location.

Before you run it, move your mouse to a corner of the screen.

Note that any number of Robot-based tests will also fail in the same way.

This seems to be a bug introduced by Microsoft in Windows 10 in the mouse_move function.

I note that FX robot also fails similarly.
Comments
http://mail.openjdk.java.net/pipermail/awt-dev/2018-May/013974.html
18-05-2018

Fix: http://cr.openjdk.java.net/~serb/8196030/webrev.04 The change will cover JDK-8190326 as well.
18-05-2018

I found this change because some tests start to pass, because the robot is able to move mouse to correct position. But sometimes it still moves incorrectly.
14-02-2018

Is this with an update from today? I updated my system yesterday afternoon and it was still failing this morning. [update] I checked for Windows updates just now and there aren't any. I also rebooted in case that was needed, but it still fails for me. This is using jdk-10+43 build.
14-02-2018

Looks like it starts to work on my local system, [~kcr] can you please check it?
14-02-2018

This does not appear to affect JDK 8, since AWT does not support HiDPI in JDK 8.
24-01-2018