On Mon, 26 Dec 2022 05:17:30 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> This assertion happens when we try to build the path linked by the shortcut 
> file when part of that path is not accessible. For example, if the ".lnk" 
> file is pointed to the "windows-update. settings" inside the 
> "Internet.settings". 
> 
> After the change, we will skip the target of the link if any part of the path 
> to the target is not a folder and is not traversable in JFileChooser.

By the way, `JFileChooser` can navigate the `.lnk` files which point to the 
classic Control Panel. I created a shortcut to *Devices and Printers* folder on 
the desktop. Double-clicking it, opens the folder but shows no items; the combo 
box at the top shows the structure: *Desktop* → *Control Panel* → *Hardware and 
Sound* → *Devices and Printers* followed by *This PC* and other common items.

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

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

Reply via email to