RFR: 6616245: NullPointerException when using JFileChooser with a custom FileView [v2]

Tejesh R tr at openjdk.org
Mon Oct 3 11:34:46 UTC 2022


On Mon, 3 Oct 2022 11:06:14 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updated based on review comments
>
> test/jdk/javax/swing/JFileChooser/FileViewNPETest.java line 84:
> 
>> 82:         String path = "";
>> 83:         if (Platform.isWindows()) {
>> 84:             path = "C:" + File.separator + "temp";
> 
> It's rare but possible that Windows is installed not on `C:` drive.

Since temp will be better option without creating any new directory for the test, I didn't change it (it was reused from JBS report). Any other alternative......?

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

PR: https://git.openjdk.org/jdk/pull/10485



More information about the client-libs-dev mailing list