JDK-8079255 : [TEST_BUG] [macosx] Test closed/java/awt/Robot/RobotWheelTest/RobotWheelTest fails for Mac only
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u60,7u80,7u85,8u45,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2015-05-04
  • Updated: 2022-11-18
  • Resolved: 2015-05-12
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 8 JDK 9 Other
8u341Fixed 9 b68Fixed openjdk8u362Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
JDK tested: 9b60 
OS tested: Mac 10.10 , Mac10.9 ,Linux
Is it a regression? NO 
Is it platform specific? Yes( Fails on Mac and Passes in Linux) 
The is failure reproduced: always 
      
General description: 

----------System.out:(25/1869)----------
robot.mouseWheel() failed w/ wheelAmt = -1, correctVal = -1 currentVale = 1
robot.mouseWheel() failed w/ wheelAmt = 2, correctVal = 1 currentVale = -1
robot.mouseWheel() failed w/ wheelAmt = -3, correctVal = -2 currentVale = 2
robot.mouseWheel() failed w/ wheelAmt = 4, correctVal = 2 currentVale = -2
robot.mouseWheel() failed w/ wheelAmt = -5, correctVal = -3 currentVale = 3
robot.mouseWheel() failed w/ wheelAmt = 6, correctVal = 3 currentVale = -3
robot.mouseWheel() failed w/ wheelAmt = -7, correctVal = -4 currentVale = 4
robot.mouseWheel() failed w/ wheelAmt = 8, correctVal = 4 currentVale = -4
robot.mouseWheel() failed w/ wheelAmt = -9, correctVal = -5 currentVale = 5
robot.mouseWheel() failed w/ wheelAmt = 10, correctVal = 5 currentVale = -5
robot.mouseWheel() failed w/ wheelAmt = -11, correctVal = -6 currentVale = 6
robot.mouseWheel() failed w/ wheelAmt = 12, correctVal = 6 currentVale = -6
robot.mouseWheel() failed w/ wheelAmt = -13, correctVal = -7 currentVale = 7
robot.mouseWheel() failed w/ wheelAmt = 14, correctVal = 7 currentVale = -7
robot.mouseWheel() failed w/ wheelAmt = -15, correctVal = -8 currentVale = 8
robot.mouseWheel() failed w/ wheelAmt = 16, correctVal = 8 currentVale = -8
robot.mouseWheel() failed w/ wheelAmt = -17, correctVal = -9 currentVale = 9
robot.mouseWheel() failed w/ wheelAmt = 18, correctVal = 9 currentVale = -9
robot.mouseWheel() failed w/ wheelAmt = -19, correctVal = -10 currentVale = 10
robot.mouseWheel() failed w/ wheelAmt = 20, correctVal = 10 currentVale = -10
robot.mouseWheel() failed w/ wheelAmt = -21, correctVal = -11 currentVale = 11
robot.mouseWheel() failed w/ wheelAmt = 22, correctVal = 11 currentVale = -11
robot.mouseWheel() failed w/ wheelAmt = -23, correctVal = -12 currentVale = 12
robot.mouseWheel() failed w/ wheelAmt = 24, correctVal = 12 currentVale = -12
testPasses = 1, NUMTESTS = 25
----------System.err:(5/343)----------
RobotWheelTest$TestFailsException: Test ran, but failed!
	at RobotWheelTest.start(RobotWheelTest.java:109)
	at com.sun.javatest.regtest.agent.AppletWrapper$AppletRunnable.run(AppletWrapper.java:158)
	at java.lang.Thread.run(Thread.java:745)
STATUS:Failed.Applet thread threw exception: RobotWheelTest$TestFailsException: Test ran, but failed!
Comments
Fix Request (8u). On behalf of Josh Cao joshcao@amazon.com. Clean Oracle parity test-only backport, no risk. Will be followed by JDK-8129827 backport.
20-10-2022

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

URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/93b25c6700c6 User: lana Date: 2015-06-10 21:24:34 +0000
10-06-2015

URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/93b25c6700c6 User: alexsch Date: 2015-05-12 14:43:24 +0000
12-05-2015

Fails for JDK 7u85b10 also on MacOSX
11-05-2015

This is the bug in the test. The wheelRotation value from MouseWheelEvent is reversed on Mac OS X.
07-05-2015

is it a test bug?
04-05-2015