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

[macos14] DisposeInActionEventTest.html failed with message: "Event posted on wrong app contex"

XMLWordPrintable

    • Fix Understood
    • aarch64
    • os_x

      OS:
      macOS

      Environment:
      Operating System: macOS 14.3 aarch64
      Language: English
      Memory: 16 GB

      Reproducible: Always

      Failed on Release/Build: JDK_22_Graal
      Is it a Regression in JDK 22u release: N/A
      [If Regression] Regression introduced in JDK 22u release/build: N/A
      Test result on the last GAed release for this train:​ ​N/A
      Is it a platform-specific issue: No. This issue happens on macOS. Not test on Linux and Windows yet.

      General description of the problem:
      The test case automatically fails when double-click with the right button on the tray icon.

      Affected tests:
      java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.html

      Steps to reproduce:
      1. Run command:
      bash /Users/mac14/Desktop/Graal/jtreg/bin/jtreg -vmoptions:"-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler" -testjdk:/Users/mac14/Desktop/Graal/jdk-22/Contents/Home -exclude:/Users/mac14/Desktop/Graal/open/test/jdk/ProblemList.txt -nativepath:/Users/mac14/Desktop/Graal/bin-test/jdk/jtreg/native -e:SWINGSET2_JAR=file:///Users/mac14/Desktop/Graal/bin-test/jdk/demos/jfc/SwingSet2/SwingSet2.jar -verbose -gui -r results/JTreport -w results/JTwork -manual /Users/mac14/Desktop/Graal/open/test/jdk/:jdk_desktop
      2. Run the test case: java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.html
      3. Double-click with right button on the tray icon.
      4. Observe whether the information about action events is printed below, and check if the tray icon is removed from the tray and then added back a second.

      Expected behavior:
      The action event is triggered when double-click with the right button on the tray icon.

      Actual behavior:
      The test case automatically fails when double-click with the right button on the tray icon with message:

      java.lang.RuntimeException: Event posted on wrong app context : java.awt.event.MouseEvent[MOUSE_MOVED,(1595,17),absolute(1595,17),modifiers=\u2318+Button3,extModifiers=Button3,clickCount=0] on java.awt.TrayIcon@36545951
      at java.desktop/sun.awt.SunToolkit.postEvent(SunToolkit.java:469)
      at java.desktop/sun.lwawt.macosx.CTrayIcon$1.run(CTrayIcon.java:232)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      STATUS:Failed.<EncodeD>41 70 70 6c 65 74 20 74 68 72 65 61 64 20 74 68 72 65 77 20 65 78 63 65 70 74 69 6f 6e 3a 20 6a 61 76 61 2e 6c 61 6e 67 2e 52 75 6e 74 69 6d 65 45 78 63 65 70 74 69 6f 6e 3a 20 45 76 65 6e 74 20 70 6f 73 74 65 64 20 6f 6e 20 77 72 6f 6e 67 20 61 70 70 20 63 6f 6e 74 65 78 74 20 3a 20 6a 61 76 61 2e 61 77 74 2e 65 76 65 6e 74 2e 4d 6f 75 73 65 45 76 65 6e 74 5b 4d 4f 55 53 45 5f 4d 4f 56 45 44 2c 28 31 35 39 35 2c 31 37 29 2c 61 62 73 6f 6c 75 74 65 28 31 35 39 35 2c 31 37 29 2c 6d 6f 64 69 66 69 65 72 73 3d 2318 2b 42 75 74 74 6f 6e 33 2c 65 78 74 4d 6f 64 69 66 69 65 72 73 3d 42 75 74 74 6f 6e 33 2c 63 6c 69 63 6b 43 6f 75 6e 74 3d 30 5d 20 6f 6e 20 6a 61 76 61 2e 61 77 74 2e 54 72 61 79 49 63 6f 6e 40 33 36 35 34 35 39 35 31 </EncodeD>

            achung Alisen Chung
            imtthongtt Thong Thai Tran
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: