On Wed, 15 Dec 2021 03:50:11 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Masanori Yano has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> 8277463: JFileChooser with Metal L&F doesn't show non-canonical UNC path
>> in - Look in
>
> test/jdk/javax/swing/JFileChooser/8277463/UNCFileChooserTest.java line 105:
>
>> 103: throw new RuntimeException("Enter the directory path to
>> test.");
>> 104: }
>> 105:
>> UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
>
> The test might be executed under some non-default L&F and switching it here
> might cause some issues for the instruction dialog which will not be updated
> to use the metal. So it is better to set metal at the start of the test.
I fixed the test as it was pointed out to me.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6796