File.getCanonicalPath on Windows?

Adam Megacz gcj@lists.megacz.com
Wed Jun 12 18:27:00 GMT 2002


Tom Tromey <tromey@redhat.com> writes:
> I just changed the Posix implementation to special-case "" to mean
> ".". Do we need a similar patch for Windows?

Yes.
> I can write it, but I can't test it.

I'll test it; post it here.
> Could you tell me what the JDK does on the test case in PR 6652?

megacz@VMWARE z:/
$ cat test.java
import java.io.*;
public class test {
 public static void main(String[] s) throws Exception {
 System.out.println(new File("").getCanonicalFile());
 }
}
megacz@VMWARE z:/
$ java.exe -cp . test
Z:\
 - a
-- 
Sick of HTML user interfaces?
www.xwt.org


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /