This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj on win32 (mingw) - target: java.io.File.listRoots(); doesn't work
- From: "Ranjit Mathew" <rmathew4lists at hotmail dot com>
- To: "Simon Rutishauser" <simon dot rutishauser at gmx dot ch>,<java at gcc dot gnu dot org>
- Cc: <gnustuff at thisiscool dot com>
- Date: Wed, 26 Feb 2003 16:46:36 +0530
- Subject: Re: libgcj on win32 (mingw) - target: java.io.File.listRoots(); doesn't work
- References: <POEIJGMGPFPGFHAGKFHAAEELCFAA.erik.poupaert@chello.be> <200302261137.15591.simon.rutishauser@gmx.ch>
- Reply-to: "Ranjit Mathew" <rmathew at hotmail dot com>
> But that just brought me round to a new problem:
>
> File drive = new File("d:\\");
> File[] dirs = drive.listFiles();
>
> throws a NullPterException in the second line. If I use c:\\ instead of
d:\\
> it works all right. If I use e:\\ instead it just shows the contents of
the
> dir where the prog resides. (c, d, e are all fat partitions)
> with cd drives it works
??? This was already solved:
http://gcc.gnu.org/ml/java-patches/2003-q1/msg00164.html
Mohan, does your GCJ source tree snapshot not contain this patch?
Simon, you can confirm that it is the same bug by passing "e:\\."
(assuming your program resides in the E drive) and it should
work as expected.
If it is, just hold on for a while please...
If all goes well, tonight I hope to submit a patch fleshing
out the unimplemented methods in natFileWin32.cc (including
performListRoots( )).
Ranjit.