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

Alexey Ivanov aivanov at openjdk.org
Mon Oct 10 10:22:47 UTC 2022


On Mon, 10 Oct 2022 06:32:44 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Test case update
>
> 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.

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

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



More information about the client-libs-dev mailing list