JDK-7100044 : [TEST_BUG] java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java failed intermittently
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,10,12,13,14
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic,x86
  • Submitted: 2011-10-12
  • Updated: 2023-10-09
  • Resolved: 2019-11-14
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
There are two problems in this test:
1. Test result is always "Failed" because "System.exit(0);" used - this line should be removed
2. Test failed intermittently with java.lang.RuntimeException: Mouse Wheel scroll position error!
3. test closed/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html should be removed (see comments in CR 7050935)
4. CR 6849371 should be closed after removing test from closed

see comments for more information
jdk 8:
following lines should be added for successful compilation:

@library ../../regtesthelpers
@build Util

Comments
Reproduced on Windows 7 and 10 with JDK13: ACTION: applet -- Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.2 REASON: User specified action: run applet WheelEventsConsumed.html TIME: 5.574 seconds messages: command: applet WheelEventsConsumed.html reason: User specified action: run applet WheelEventsConsumed.html Additional options from @modules: --add-modules java.desktop elapsed time (seconds): 5.574 STDOUT: Passed. Separate case on Win32. Choice generated MouseWheel events1 STDERR: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.2 at WheelEventsConsumed.start(WheelEventsConsumed.java:65) at com.sun.javatest.regtest.agent.AppletWrapper$AppletRunnable.run(AppletWrapper.java:157) at java.base/java.lang.Thread.run(Thread.java:830) STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.2
31-05-2019

This is failing in Ubuntu 18.04 LTS and OEL 7.5 with jdk12. Attached is the jtreg report.
08-11-2018

EVALUATION I can reproduce the problem.
26-10-2011