On Wed, 17 Sep 2025 11:18:46 GMT, Tejesh R <[email protected]> wrote: >> 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`. > > Whether the same behavior applies to newer versions is unknown. As of now it > works for Windows 10 and doesn't work for Windows 11. That the behavior seen > in Windows 11 where `FileSysetemView.getParentDirectory(C:/..../Documents)` > return "C:/..../Desktop". So this is an observations and I think this > particular test cannot handle the scenario, which is why I'm skipping it for > only Window 11.
I think we should assume it does apply to newer versions. However that is moot, as I don't see much point in continuing to run on the old, nearly out of support Windows 10. Additionally I strongly suspect that you'll find that Windows Server 2022 and definitely 2025 will have the same behavior and you aren't preventing the test running there. And if this is fixed, the bug tracking the problem is gone. So you'd just have to file another one and we've artificially hidden the test failure. So I think this PR should be withdrawn. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27329#discussion_r2356260314
