Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316029

Cover directory junctions in FileChooserSymLinkTest.java

XMLWordPrintable

    • b26
    • 21

      In JDK-8281966, the test/jdk/javax/swing/JFileChooser/FileChooserSymLinkTest.java test was written to ensure symbolic links on Windows can be selected in JFileChooser.

      During code review for JDK-8307105, which fixes the regression from JDK-8281966, I found that JFileChooser still returns null [1] for junctions [2]. On Windows, junctions are more common than symbolic links.

      After JDK-8307105 is fixed, junctions can be selected in JFileChooser. The FileChooserSymLinkTest.java test should be expanded to cover this scenario too.


      [1] https://github.com/openjdk/jdk/pull/13998#discussion_r1204238269
      [2] https://learn.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions#junctions

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: