RFR: 8281966: Absolute path of symlink is null in JFileChooser [v2]
Tejesh R
tr at openjdk.org
Mon Aug 1 10:27:03 UTC 2022
> 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.
Tejesh R has updated the pull request incrementally with two additional commits since the last revision:
- Fix : Updated to handle multiSelection case
- Manual Test Indicator Added in JTREG tag
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/9597/files
- new: https://git.openjdk.org/jdk/pull/9597/files/82612a0a..0406d504
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=9597&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=9597&range=00-01
Stats: 3 lines in 2 files changed: 1 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/9597.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9597/head:pull/9597
PR: https://git.openjdk.org/jdk/pull/9597
More information about the client-libs-dev
mailing list