java/9253: on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:
erik.poupaert@chello.be
erik.poupaert@chello.be
Mon Jan 13 05:17:00 GMT 2003
>Number: 9253
>Category: java
>Synopsis: on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 09 11:46:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: erik.poupaert@chello.be
>Release: unknown-1.0
>Organization:
>Environment:
win32
>Description:
import java.io.File;
public class TestFileList
{
public static void main(String args[])
{
File file=new File("C:\\");
File[] list = file.listFiles();
//displays the list of pwd and not of C:\\
for(int i=0;i<list.length;i++)
{
System.out.println(list[i].getName());
}
}
}
>How-To-Repeat:
See example source
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list