On Wed, 17 Sep 2025 05:39:26 GMT, Tejesh R <[email protected]> wrote:

> The logic no longer applies to window 11 since 
> getParentDirectory("C:\...\\Documents") return "C:\..\\Desktop". This will 
> require thorough analysis and might call for a product fix. Hence bypassing 
> this test for Windows 11 OS.

test/jdk/javax/swing/JFileChooser/8194044/FileSystemRootTest.java line 39:

> 37: public class FileSystemRootTest {
> 38:     public static void main(String[] args) throws Exception {
> 39:         if (System.getProperty("os.name").equalsIgnoreCase("Windows 11")) 
> {

I guess the same behavior applies to versions newer than 11, right? If that's 
the case, perhaps you could check whether 
`getParentDirectory("C:...\Documents")` returns `C:..\Desktop`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27329#discussion_r2354713267

Reply via email to