JDK-8129827 : [TEST_BUG] Test java/awt/Robot/RobotWheelTest/RobotWheelTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,9,10.0.1,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-06-25
  • Updated: 2024-09-12
  • Resolved: 2022-04-23
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 JDK 17 JDK 19 JDK 8 Other
11.0.18-oracleFixed 17.0.6-oracleFixed 19 b20Fixed 8u361Fixed openjdk8u362Fixed
Related Reports
Relates :  
Description
Test name(s):java/awt/Robot/RobotWheelTest/RobotWheelTest.java

JDK tested: 9b68 
OS tested: Windows , Solaris 11 ,MacOSX
Is it a regression? NO 
Is it platform specific? Yes( test passes in windows and Mac) 
The is failure reproduced: always 
           
General description: 

----------System.out:(0/0)----------
----------System.err:(13/783)----------
java.lang.RuntimeException: wheelRotation = 0, expected value = -20
	at RobotWheelTest.main(RobotWheelTest.java:73)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: wheelRotation = 0, expected value = -20
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: wheelRotation = 0, expected value = -20


Comments
Fix Request (8u). On behalf of Josh Cao joshcao@amazon.com. Oracle parity test-only backport, no risk. Followup to 8u backport of JDK-8079255.
20-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/141 Date: 2022-10-16 05:39:23 +0000
16-10-2022

Fix request [11u] I backport this for parity with 11.0.18-oracle. No risk, only a test change. Clean backport except for ProblemList, marked as clean. Test passes. SAP nighlty testing passed.
11-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1425 Date: 2022-10-10 06:59:13 +0000
10-10-2022

Fix request [17u] I backport this for parity with 17.0.6-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
21-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/697 Date: 2022-09-19 20:54:44 +0000
19-09-2022

Changeset: a1efb955 Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2022-04-23 20:39:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/a1efb95536fb3995780336604cc727f921770c63
23-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8305 Date: 2022-04-19 20:03:57 +0000
19-04-2022

Yes, it is reproducible on Ubuntu 16.04 with JDK 11 AND it reproduces on Windows 7 too. So this test needs to be looked at.
04-05-2018

Issue reproducible on Linux x64 with JDK10.0.1
01-02-2018

This regression caused by JDK-8079255, Test was rewritten based on assumption that we will receive only one mouseWheelMoved event after robot.mouseWheel(20) call, but on Solaris/Linux we receive 20 of them.
01-07-2015

Machine to reproduce :- spb23350.ru.oracle.com User : gtee Pass: Gt33acct RULE java/awt/Robot/RobotWheelTest/RobotWheelTest.java Exception java.lang.RuntimeException: wheelRotation = ..., expected value = ... http://scaaa008.us.oracle.com:9502/runs/00968/968658.ManualSubmit/968658.ManualSubmit-1/workDir/java/awt/Robot/RobotWheelTest/RobotWheelTest.jtr
25-06-2015