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

Tejesh R tr at openjdk.org
Mon Oct 10 10:26:00 UTC 2022


On Mon, 10 Oct 2022 10:19:11 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> test/jdk/javax/swing/JFileChooser/FileViewNPETest.java line 67:
>> 
>>> 65:         //Initialize the components
>>> 66:         final String INSTRUCTIONS = """
>>> 67:                 Instructions to Test:
>> 
>> JFileChooser extends JComponent, probably we can create a frame with embedded JFileChooser and programmatically change the value of that "Look-In ComboBox"-> and catch an exception.
>
> @mrserb is suggesting making the test automatic. `JFileChooser` is embedded in a frame in the test. It should be possible… I'm fine with manual test though… for now.

Ok, since the test has to select non traversable folders in both windows and linux I had thought that making it as manual would be better.

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

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



More information about the client-libs-dev mailing list