This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug classpath/27163] FTP directory listing doesn't work
- From: "r_ovidius at eml dot cc" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 20 Apr 2006 17:20:40 -0000
- Subject: [Bug classpath/27163] FTP directory listing doesn't work
- References: <bug-27163-7936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from r_ovidius at eml dot cc 2006-04-20 17:20 -------
Try with
String url = "ftp://gcc.gnu.org";
(notice the missing "/" at the end). This results in
gnu.java.net.protocol.ftp.FTPException: Invalid number of arguments.
at gnu.java.net.protocol.ftp.FTPConnection.changeWorkingDirectory
(libgcj.so.7)
at gnu.java.net.protocol.ftp.FTPURLConnection.getInputStream (libgcj.so.7)
at java.net.URL.openStream (libgcj.so.7)
with gcj (GCC) 4.2.0 20060419 (experimental).
Further, the "while (file.ready())" never seems to return false in Sun's java,
while it does with gcj, so I'd wager on the "obscure bug".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27163