Integrated: 8277463: JFileChooser with Metal L&F doesn't show non-canonical UNC path in - Look in

Masanori Yano myano at openjdk.java.net
Wed Jan 12 07:01:36 UTC 2022


On Fri, 10 Dec 2021 08:59:55 GMT, Masanori Yano <myano at openjdk.org> wrote:

> I would like to fix the bug reported in JDK-8277463.
> 
> As reporter's investigation, ShellFolder.getNormalizedFile() returns incorrect value for non-canonical Windows UNC path. getNormalizedFile() is used for symbolic link path, but Windows environment does not handle symbolic link. And, getCanonicalFile() returns correct path for a directory link in Windows which is made with `mklink` command. So getNormalizedFile() should perform to return getCanonicalFile() like WindowsFileChooserUI.addItem() at Windows environment.

This pull request has now been integrated.

Changeset: 319d2303
Author:    Masanori Yano <myano at openjdk.org>
Committer: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/319d23033f4a814935f10885aef725c818b0baed
Stats:     126 lines in 2 files changed: 125 ins; 0 del; 1 mod

8277463: JFileChooser with Metal L&F doesn't show non-canonical UNC path in - Look in

Reviewed-by: psadhukhan

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

PR: https://git.openjdk.java.net/jdk/pull/6796



More information about the client-libs-dev mailing list