RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v2]
Alexey Ivanov
aivanov at openjdk.org
Wed Nov 22 12:45:09 UTC 2023
On Wed, 22 Nov 2023 05:37:55 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
> For some reasons when I used the `current directory i.e. scratch`, test failed in my local machine. `String tmpDir = System.getProperty(".");`
How does it fail?
Is it because `System.getProperty(".")` returns `null`? The property `"."` doesn't exist, does it?
Use `new File(".")` which resolves to the current directory. Alternatively, remove references to paths, just create directories and files, they will be created in the current directory if you don't specify an absolute path.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16674#discussion_r1401989557
More information about the client-libs-dev
mailing list