Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204200

MouseWheelEvent/InfiniteRecursion fail: Expected and Actual events are different

    • x86_64
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.16299.371]

      Darwin unit 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64

      JDK under test: C:\\Program Files\\Java\\jdk-10.0.1
      java version "10.0.1" 2018-04-17
      Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
      Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      The following tests
        java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_1.java
        java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_2.html
        java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_3.html
        java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_4.java
        java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.java
      fail on Windows and MacOS because expected and actual event counts are different
      The issue was not observed on Linux

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ ./r.sh C\:/Program\ Files/Java/jdk-10.0.1/ "-Djava.awt.headless" test/java/awt/event/MouseWheelEvent/InfiniteRecursion

      ACTUAL -
      e.g. output for java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_1.java
      #section:main
      ----------messages:(5/205)----------
      command: main InfiniteRecursion_1
      reason: User specified action: run main InfiniteRecursion_1
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 0.988
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(12/2194)----------
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1,preciseWheelRotation=-1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1,preciseWheelRotation=-1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1,preciseWheelRotation=-1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1,preciseWheelRotation=-1.0] on frame0
      Wheel moved on FRAME : java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(13,0),absolute(13,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=-1,preciseWheelRotation=-1.0] on frame0
      The test failed: Expected events count: 20 Actual events count: 10
      The test is over, hit Ctl-C to stop Java VM
      ----------System.err:(14/989)----------
      java.lang.RuntimeException: Expected events count: 20 Actual events count: 10
      at test.java.awt.regtesthelpers.AbstractTest.fail(AbstractTest.java:60)
      at InfiniteRecursion_1.main(InfiniteRecursion_1.java:105)
      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: Expected events count: 20 Actual events count: 10
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected events count: 20 Actual events count: 10

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/event/MouseWheelEvent/InfiniteRecursion
      ---------- END SOURCE ----------

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: