RFR: 8307105: JFileChooser InvalidPathException when selecting some system folders on Windows [v3]

Alexey Ivanov aivanov at openjdk.org
Fri May 26 14:09:58 UTC 2023


On Fri, 26 May 2023 14:00:16 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Another option is to modify `isFileSystem` so that it returns `true` for all filesystem objects, excluding the added condition that it should be not a link to directory.

I assume this is required to ensure `JFileChooser` doesn't return `.lnk` file when in directory-only selection mode, and probably doesn't report is directory is selected when you select `.lnk` file. Double-clicking the `.lnk` file resolves to its target, then the directory can be safely returned.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13998#discussion_r1206841598



More information about the client-libs-dev mailing list