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

TestJInternalFrameDispose throws IllegalComponentStateException

    XMLWordPrintable

Details

    Description

      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 test javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java fails on Windows and MacOS with the message "java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location"
      The issue was not observed on Linux

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ jtreg -v -testjdk:/cygdrive/c/Program\ Files/Java/jdk-10.0.1 -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java

      ACTUAL -
      #section:main
      ----------messages:(5/217)----------
      command: main TestJInternalFrameDispose
      reason: User specified action: run main TestJInternalFrameDispose
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 1.884
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------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:2059)
      at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2033)
      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:770)
      at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
      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

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Activity

          People

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: