<Swing Dev> RFR: JDK-8075909: [TEST_BUG] The regression-swing case failed as it does not have the 'Open' button when select 'subdir' folder with NimbusLAF. [v2]

Alexey Ivanov aivanov at openjdk.java.net
Tue Feb 16 19:40:44 UTC 2021


On Tue, 16 Feb 2021 16:06:27 GMT, Alexandre Iline <shurailine at openjdk.org> wrote:

>> Amresh Sahu has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update bug6698013.java
>>   
>>   Removed duplicate code.
>
> test/jdk/javax/swing/JFileChooser/6698013/bug6698013.java line 50:
> 
>> 48:             SwingUtilities.invokeAndWait(() -> new bug6698013().init());
>> 49:         } catch (InvocationTargetException | InterruptedException e) {
>> 50:            e.printStackTrace();
> 
> The test should, probably, fail in case of the exception.

Yes, it's safe to declare `main` with `throws Exception`; `main` is for convenience to run the test quickly on the command line.

The test harness does not use `main`, it runs the test as applet.

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

PR: https://git.openjdk.java.net/jdk/pull/2587


More information about the swing-dev mailing list