RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v3]

Abhishek Kumar abhiscxk at openjdk.org
Tue Dec 5 12:18:05 UTC 2023


On Tue, 5 Dec 2023 12:12:34 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>> To eliminate duplicating code for disposing of the frame, create a helper method and call it from the `finally` block.
>
>> `fileChooser.setFileSelectionMode` that you call below should be called on EDT, I suggest moving it into this block.
>> 
>> This applies to all `check-*` methods.
> 
> Accessed on EDT.

> To eliminate duplicating code for disposing of the frame, create a helper method and call it from the `finally` block.

Updated, looks cleaner code.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16674#discussion_r1415503842


More information about the client-libs-dev mailing list