JDK-6560349 : REGRESSION :folder having ".lnk" in the name can not be opened by 5.0 and later versions
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-05-22
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u4Fixed 7 b46Fixed
Related Reports
Relates :  
Relates :  
Description
A folder, having the extension .lnk in the name,  can not be opened by 5.0fcs and later versions.

REPRODUCE:
1) Create a folder which has .lnk in the name
  ex.  test.lnk
2) Go to .\jdk1.4.2_14\demo\jfc\FileChooserDemo
3) Invoke "java -jar FileChooserDemo.jar"
4) Click "ShowFileChooser" button
5) Try to open the folder created at step 1)
 5.0fcs and later versions will no be able to open the 1) folder.
 1.4.2_14 can open the folder.

CONFIGURATION:
 OS :WindowsXP(SP2, Japanese)
 JRE : 5.0fcs, 5.0u8, 5.0u11, 6.0u1

Comments
EVALUATION Will be fixed in 6u4, after I putback the appropriate fix for JDK 7.
12-07-2007

EVALUATION In BasicFileChooserUI.java ================== private void changeDirectory(File dir) { JFileChooser fc = getFileChooser(); // Traverse shortcuts on Windows if (dir != null && File.separatorChar == '\\' && dir.getPath().endsWith(".lnk")) { ... ================== ShellFolder.isLink() should be used instead of string comparison.
05-06-2007