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

TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array"

    XMLWordPrintable

Details

    • b27
    • x86_64
    • linux

    Backports

      Description

        The following test failed in the JDK22 CI:

        com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/317)----------
        command: main TestFileChooserSingleDirectorySelection
        reason: User specified action: run main TestFileChooserSingleDirectorySelection
        started: Fri Nov 10 15:45:11 UTC 2023
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop
        finished: Fri Nov 10 15:45:15 UTC 2023
        elapsed time (seconds): 4.444
        ----------configuration:(3/40)----------
        Boot Layer
          add modules: java.desktop

        ----------System.out:(3/106)----------
        Testing LAF: javax.swing.plaf.metal.MetalLookAndFeel
        Testing File Only mode
        Testing Directories Only mode
        ----------System.err:(14/1193)----------
        java.lang.RuntimeException: getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel
        at TestFileChooserSingleDirectorySelection.checkResult(TestFileChooserSingleDirectorySelection.java:216)
        at TestFileChooserSingleDirectorySelection.doTesting(TestFileChooserSingleDirectorySelection.java:202)
        at TestFileChooserSingleDirectorySelection.checkDirectoriesOnlyTest(TestFileChooserSingleDirectorySelection.java:124)
        at TestFileChooserSingleDirectorySelection.main(TestFileChooserSingleDirectorySelection.java:86)
        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$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1570)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel
        ----------rerun:(46/6007)*----------

        Attachments

          Issue Links

            Activity

              People

                abhiscxk Abhishek Kumar
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: