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

javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :
      JDK under test: C:\\Java\\jdk1.8.0_112
      java version "1.8.0_112"
      Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

      JDK under test: C:\\Java\\jdk-9
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+148)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+148, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.14393]

      A DESCRIPTION OF THE PROBLEM :
      The test javax/swing/JMenuItem/4654927/bug4654927.java throws java.awt.IllegalComponentStateException with the message "component must be showing on the screen to determine" on Windows with both Java 8 and 9. This issue was not observed on Linux, OSX.
      The test passes in standalone mode but fails in the group javax/swing/JMenuItem/4171437/bug4171437.java + javax/swing/JMenuItem/4654927/bug4654927.java

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      jtreg -v -a -xml -testjdk:C:/Java/jdk-9 -javaoptions:-Djava.awt.headless=false -timeoutFactor:2 test/javax/swing/JMenuItem/4171437/bug4171437.java test/javax/swing/JMenuItem/4654927/bug4654927.java


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #section:main
      ----------messages:(4/125)----------
      command: main bug4654927
      reason: User specified action: run main bug4654927
      Mode: othervm
      elapsed time (seconds): 0.954
      ----------configuration:(0/0)----------
      ----------System.out:(0/0)----------
      ----------System.err:(25/1885)----------
      java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
      at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2053)
      at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2027)
      at Util$1.call(Util.java:202)
      at Util$1.call(Util.java:198)
      at Util$2.run(Util.java:222)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
      at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:712)
      at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:706)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:79)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
      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

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/0e4fc29a5ce4/test/javax/swing/JMenuItem/4654927/bug4654927.java
      ---------- END SOURCE ----------

      Attachments

        Activity

          People

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: