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

[macos14] javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location

XMLWordPrintable

    • b24
    • generic
    • os_x

        The test javax/swing/JMenuItem/4654927/bug4654927.java fails on macOS14 Darwin Kernel Version 23.0.0 as follows:

        ====================8<--------------------
        #section:main
        ----------messages:(7/259)----------
        command: main bug4654927
        reason: User specified action: run main bug4654927
        started: Mon Sep 11 08:55:02 UTC 2023
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop
        finished: Mon Sep 11 08:55:04 UTC 2023
        elapsed time (seconds): 1.951
        ----------configuration:(3/40)----------
        Boot Layer
          add modules: java.desktop

        ----------System.out:(0/0)----------
        ----------System.err:(24/1826)----------
        java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
        at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2113)
        at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2087)
        at bug4654927$3.call(bug4654927.java:99)
        at bug4654927$3.call(bug4654927.java:95)
        at Util$2.run(Util.java:222)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
        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.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        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)

        JavaTest Message: Test threw exception: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
        ====================8<--------------------

        Reproducibility: 100%

        Steps to reproduce:
        $ jtreg -v -testjdk:$JAVA_HOME test/jdk/javax/swing/JMenuItem/4654927/bug4654927.java

        The issue was observed on 17, 21, 22

          1. bug4654927_Updated_autoIdle.java
            5 kB
          2. bug4654927_Updated.java
            6 kB
          3. bug4654927.jtr
            7 kB
          4. macOS14_Updated.mov
            14.11 MB
          5. macOS14-ARM.mov
            14.11 MB
          6. Screen Recording 2023-09-14 at 05.41.53.mov
            18.13 MB

              psadhukhan Prasanta Sadhukhan
              vprovodin Vitaly Provodin
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: