This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File.getCanonicalPath on Windows?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]