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

javax/swing/Popup/TaskbarPositionTest.java: Popup not visible

XMLWordPrintable

    • 21
    • generic
    • os_x, windows

      The tests javax/swing/Popup/TaskbarPositionTest.java fails on *Windows* and *macOS* in all configurations as follows:

      ====================8<--------------------
      #section:main
      ----------messages:(7/284)----------
      command: main TaskbarPositionTest
      reason: User specified action: run main TaskbarPositionTest
      started: Thu Jun 22 01:07:03 UTC 2023
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      finished: Thu Jun 22 01:07:06 UTC 2023
      elapsed time (seconds): 2.428
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(30/2178)----------
      java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1381)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1356)
      at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
      at TaskbarPositionTest.main(TaskbarPositionTest.java:354)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      Caused by: java.lang.RuntimeException: Popup not visible
      at TaskbarPositionTest.isPopupOnScreen(TaskbarPositionTest.java:217)
      at TaskbarPositionTest.lambda$main$0(TaskbarPositionTest.java:354)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
      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:750)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

      JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
      ====================8<--------------------

      The failure became observed on JDK 21 and 22.
      After reverting changes related to JDK-8309095 (https://github.com/openjdk/jdk/commit/07f2070411b3bff5608166ceae0e0bdbf155e7c2) the test passes well.

      Regression: YES
      Reproducibility: 100%
      Steps to reproduce:

      $ jtreg -va -testjdk:$JAVA_HOME test/jdk/javax/swing/Popup/TaskbarPositionTest.java

            rkannathpari Renjith Kannath Pariyangad
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: