JDK-8204315 : awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java: Wrong mouse click point!
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-06-01
  • Updated: 2018-06-11
  • Resolved: 2018-06-11
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
11Resolved
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows [Version 10.0.16299.371]


A DESCRIPTION OF THE PROBLEM :
The test java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java fails on Windows 10 with the message "java.lang.RuntimeException: Wrong mouse click point!"

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
`$ jtreg -testjdk:/cygdrive/c/Program\ Files/Java/jdk-10.0.1 -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 test/java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java

ACTUAL -
#section:main
----------messages:(5/289)----------
command: main -Dsun.java2d.win.uiScale=2 HiDPIRobotMouseClick
reason: User specified action: run main/othervm -Dsun.java2d.win.uiScale=2 HiDPIRobotMouseClick 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 1.07
----------configuration:(3/43)----------
Boot Layer
  add modules: java.desktop

----------System.out:(0/0)----------
----------System.err:(13/841)----------
java.lang.RuntimeException: Wrong mouse click point!
	at HiDPIRobotMouseClick.main(HiDPIRobotMouseClick.java:84)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong mouse click point!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong mouse click point!

---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/Robot/HiDPIMouseClick/HiDPIRobotMouseClick.java
---------- END SOURCE ----------

FREQUENCY : always



Comments
[~pardesha] I guess PopupMenuLocation is unrelated to the reported bug(separate issue?)
05-06-2018

The test passed successfully with JDK 10.0.1 but failed with 11 ea b15 when checked with jtreg, version 4.2 dev 390 in Windows 10. Results: ========== $ java -jar jtreg.jar -testjdk:"C:\Program Files\Java\jdk-10.0.1" -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 "D:\jdk10-dev\test\jdk\java\awt\PopupMenu\PopupMenuLocation.java" Test results: passed: 1 $ jtreg -v -testjdk:/cygdrive/c/Program\ Files/Java/jdk-11 -javaoptions:"-Djava.awt.headless" /cygdrive/d/source/11dev/test/jdk/java/awt/PopupMenu/PopupMenuLocation.java runner starting test: java/awt/PopupMenu/PopupMenuLocation.java runner finished test: java/awt/PopupMenu/PopupMenuLocation.java Failed. Execution failed: `main' threw exception: java.lang.RuntimeException Test results: failed: 1
05-06-2018