Integrated: 8281966: Absolute path of symlink is null in JFileChooser

Tejesh R tr at openjdk.org
Wed Aug 10 11:46:22 UTC 2022


On Thu, 21 Jul 2022 18:31:46 GMT, Tejesh R <tr at openjdk.org> wrote:

> Absolute path of Symbolic Link created in Windows is set to `null` in `BasicFileChooserUI` class. This happens when propertyChangeListener is implemented to get the Symbolic link's Absolute path on Mouse click through JFileChooser. The reason being that on click of Symbolic link, the _ValueChanged()_ in `BasicFileChooserUI` class has a logic which actually sets the  `chooser.SelectedFile()` to `null` even though the path is not null. Hence the issue is addressed by checking if its a Symbolic link and then setting the `chooser.SelectedFile()` to the value of clicked link without modifying the other logics.

This pull request has now been integrated.

Changeset: ecfa38ff
Author:    Tejesh R <tr at openjdk.org>
Committer: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ecfa38ffa8620e41854a043497f19863da297947
Stats:     169 lines in 2 files changed: 165 ins; 0 del; 4 mod

8281966: Absolute path of symlink is null in JFileChooser

Reviewed-by: aivanov, psadhukhan

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

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



More information about the client-libs-dev mailing list