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

javax/swing/JFileChooser/JFileChooserSetLocationTest.java failed with "setLocation() is not working properly"

XMLWordPrintable

    • b07
    • x86_64
    • linux

        The following test failed in the JDK20 CI:

        javax/swing/JFileChooser/JFileChooserSetLocationTest.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/293)----------
        command: main JFileChooserSetLocationTest
        reason: User specified action: run main JFileChooserSetLocationTest
        started: Fri Oct 21 16:14:49 UTC 2022
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop
        finished: Fri Oct 21 16:14:59 UTC 2022
        elapsed time (seconds): 9.573
        ----------configuration:(3/40)----------
        Boot Layer
          add modules: java.desktop

        ----------System.out:(28/929)----------
        Testing javax.swing.plaf.metal.MetalLookAndFeel
        createDialog and set location to (75, 75)
        verify 75==75; 75==75
        Test passed
        createDialog and set location to (512, 217)
        verify 512==507; 217==217
        Test passed
        createDialog and set location to (512, 217)
        verify 512==507; 217==217
        Test passed
        Test Passed, All cases passed for javax.swing.plaf.metal.MetalLookAndFeel
        Testing javax.swing.plaf.nimbus.NimbusLookAndFeel
        createDialog and set location to (75, 75)
        verify 75==75; 75==75
        Test passed
        createDialog and set location to (512, 218)
        verify 512==512; 218==218
        Test passed
        createDialog and set location to (512, 218)
        verify 512==512; 218==218
        Test passed
        Test Passed, All cases passed for javax.swing.plaf.nimbus.NimbusLookAndFeel
        Testing com.sun.java.swing.plaf.motif.MotifLookAndFeel
        createDialog and set location to (75, 75)
        verify 75==75; 75==75
        Test passed
        createDialog and set location to (512, 222)
        verify 512==512; 222==211
        ----------System.err:(12/812)----------
        java.lang.RuntimeException: Test Failed, setLocation() is not working properly
        at JFileChooserSetLocationTest.verify(JFileChooserSetLocationTest.java:184)
        at JFileChooserSetLocationTest.main(JFileChooserSetLocationTest.java:136)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1591)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Test Failed, setLocation() is not working properly
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test Failed, setLocation() is not working properly
        ----------rerun:(43/5324)*----------

        There is another unresolved bug for this same test, but that bug is
        tracking a different failure mode:

        JDK-8289895 JFileChooserSetLocationTest.java always fails in a single Windows machine

              tr Tejesh R
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: