Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6595866
Votes 2
Synopsis File does work with symbolic links (win,vista)
Category java:classes_io
Reported Against
Release Fixed 7(b71)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 22-AUG-2007
Description
Windows Vista adds support for symbolic links to files. For the most part, they work like sym links on Unix except that a number of Win32 functions to not follow links.  The list of impacted functions is here:
  http://msdn2. customer .com/en-us/library/aa365682.aspx

This bug is submitted to track updating the Windows java.io.File implementation so that the following methods work with sym links:

1. length
2. exists
3. isXXX
4. canXXX
5. setXXX (except setLastModified as it correctly sets the last modified time of the final target)
6. createNewFile (does not fail when existing file is a sym link)

Note that this bug does not include canonicalziation (getCanonicalPath/getCanonicalFile). That will be addressed by a different task (require analysis of some subtle compatability issues that could arise).
Posted Date : 2009-08-20 13:02:34.0
Work Around
N/A
Evaluation
java.io.File needs to be updated for Windows Vista.
Posted Date : 2007-08-22 15:30:01.0
Comments
  
  Include a link with my name & email   

Submitted On 16-OCT-2007
benrayfield
Using JDK1.6 and java.io.File and FileInputStream, a symbolic link in Windows Vista Business made with mklink on the commandline exists but File.length() and the reading of the file is 0 bytes.



PLEASE NOTE: JDK6 is formerly known as Project Mustang