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

Alexey Ivanov aivanov at openjdk.org
Thu Oct 13 20:33:10 UTC 2022


On Thu, 13 Oct 2022 04:52:02 GMT, Tejesh R <tr at openjdk.org> wrote:

>> Probably it will be good to automate it, and cover the macOS? I do not see a reason why we cannot set Metal L&F and verify the fix.
>
> 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.

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

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



More information about the client-libs-dev mailing list