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

Tejesh R tr at openjdk.org
Fri Oct 14 04:42:47 UTC 2022


On Thu, 13 Oct 2022 20:01:37 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> I wasn't able to reproduce the issue in macOS, so didn't include it in test...... And the fix is for metal L&F and should we explicitly set the L&F? Anyhow default L&F is metal right....?
>
>> Probably it will be good to automate it
> 
> I've submitted [JDK-8295298](https://bugs.openjdk.org/browse/JDK-8295298): Automate javax/swing/JFileChooser/FileViewNPETest.java
> 
>> … and cover the macOS? I do not see a reason why we cannot set Metal L&F and verify the fix.
> 
> Agreed.
> 
>> I wasn't able to reproduce the issue in macOS, so didn't include it in test...... And the fix is for metal L&F and should we explicitly set the L&F? Anyhow default L&F is metal right....?
> 
> The default Look and Feel is Metal except for macOS where the default one is Aqua which is the system L&F. The default L&F can be changed using a property file or setting the system property.
> 
> You can always change the L&F in the code.

Ok will check in macOS again then.

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

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



More information about the client-libs-dev mailing list