RFR: 8281966: Absolute path of symlink is null in JFileChooser
Tejesh R
tr at openjdk.org
Thu Jul 21 18:41:27 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.
-------------
Commit messages:
- Frame dimension update
- Fix : Checking if its symlink and setting to file
- Merge remote-tracking branch 'upstream/master'
- Merge remote-tracking branch 'upstream/master'
- Merge remote-tracking branch 'upstream/master'
- Merge remote-tracking branch 'upstream/master'
- Merge branch 'master' of github.com:TejeshR13/jdk
- Merge branch 'openjdk:master' into master
- Merge remote-tracking branch 'upstream/master'
- Merge remote-tracking branch 'upstream/master'
- ... and 2 more: https://git.openjdk.org/jdk/compare/c7c20661...82612a0a
Changes: https://git.openjdk.org/jdk/pull/9597/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9597&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8281966
Stats: 112 lines in 2 files changed: 111 ins; 0 del; 1 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