File.getCanonicalPath on Windows?
Tom Tromey
tromey@redhat.com
Wed Jun 12 11:40:00 GMT 2002
>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>> Where is File.getCanonicalPath for Windows?
>> I don't see it in natFileWin32.cc.
Adam> megacz@curry$grep getCanonical branch/gcc/libjava/java/io/natFileWin32.cc
Adam> branch/gcc/libjava/java/io/natFileWin32.cc:java::io::File::getCanonicalPath (void)
Weird -- I completely missed it.
I just changed the Posix implementation to special-case "" to mean ".".
Do we need a similar patch for Windows? I can write it, but I can't
test it. Could you tell me what the JDK does on the test case in PR 6652?
Tom
More information about the Java
mailing list