This is the mail archive of the java-prs@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]

[Bug classpath/27163] FTP directory listing doesn't work



------- 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


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