JDK-6956646 : Test: MouseWheelEvent/InfiniteRecursion test receives more MouseWheelEvents than expected
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u21,7,8u20
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic,linux
  • CPU: generic
  • Submitted: 2010-05-28
  • Updated: 2014-07-22
  • Resolved: 2011-06-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 6 JDK 7 JDK 8
6u25-revFixed 7Fixed 8Resolved
Related Reports
Relates :  
Relates :  
Description
Testsuite name: regression; java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.java test
JDK/JRE tested: build 1.6.0_21-ea-b04
OS/architecture: Linux; reproduced also on Solaris
Reproducible: Always
Reproducible on machine: stt-52.russia; stt-23.russia; stt-73.russia
Is it a Regression: Y
Regression introduced in release/build: build 1.6.0_21-ea-b04
Test run log location: attached; stt-52.russia, see below;
Steps to reproduce: ssh to stt-52.russia; login stt-robot; password
execute next commands:
previous JDK
[stt-robot@stt-52]$ /export/jdk/jdk1.6.0_21b03/bin/java -jar /net/vice/export/home0/regression/tools/jtest-latest/lib/jtreg.jar -testjdk:/export/jdk/jdk1.6.0_21b03 /net/vice/export/home0/regression/workspaces/160/1.6.0_21b04/j2se/test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.java
Test results: passed: 1
Report written to JTreport/report.html
Results written to /net/vice/export/stt/newroot/net_homes/stt-52/JTwork

current JDK
[stt-robot@stt-52]$ /export/jdk/jdk1.6.0_21b04/bin/java -jar /net/vice/export/home0/regression/tools/jtest-latest/lib/jtreg.jar -testjdk:/export/jdk/jdk1.6.0_21b04 /net/vice/export/home0/regression/workspaces/160/1.6.0_21b04/j2se/test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.java
Test results: failed: 1
Report written to JTreport/report.html
Results written to /net/vice/export/stt/newroot/net_homes/stt-52/JTwork
Error: Some tests failed or other problems occurred.

check results 
[stt-robot@stt-52]$ cat JTwork/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.jtr
...
Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(100,109),absolute(100,134),button=0,clickCount=5,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1] on frame0
The test failed: Expected events count: 5 Actual events count: 20
The test is over, hit  Ctl-C to stop Java VM
----------System.err:(14/883)----------
java.lang.RuntimeException: Expected events count: 5 Actual events count: 20
        at test.java.awt.regtesthelpers.AbstractTest.fail(AbstractTest.java:60)
        at InfiniteRecursion.main(InfiniteRecursion.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
        at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected events count: 5 Actual events count: 20
JavaTest Message: shutting down test

The same is related to the InfiniteRecursion_1 and InfiniteRecursion_2

Comments
RULE java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_1.java Exception java.lang.RuntimeException: Expected events count: ... Actual events count: ... RULE java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_4.java Exception java.lang.RuntimeException: Expected events count: ... Actual events count: ...
22-07-2014

EVALUATION Should correct the test itself.
29-12-2010

EVALUATION The toplevel would receive twofold (we wouldn't recieve as many events as the depth of the components' hierarchy) number of wheel events if the internal component doesn't have a listener. The MouseWheelEvent class description says that event is generated in result of wheel rotation and it is implied (well, my understanding is) that we have one-to-one relationship here.
30-08-2010

EVALUATION The regression of 6920842.
02-06-2010

EVALUATION The problem is reproducible always on Ubuntu 10.4 with 6u21b04. I cannot reproduce the issue with 6u21b03. So that is indeed a regression. I looked through 6u21 fix-avaliable and fix-delivered fixes but have not found any suspicious changes. I am assigning the CR on an engineer responsible for the area.
28-05-2010