public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27163]  New: FTP directory listing doesn't work
@ 2006-04-14 17:28 r_ovidius at eml dot cc
  2006-04-19 18:39 ` [Bug classpath/27163] " tromey at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: r_ovidius at eml dot cc @ 2006-04-14 17:28 UTC (permalink / raw)
  To: java-prs

GCJ 4.1.0

The following prints the ftp directory list when using Sun's java.  With gcj it
does not.  

(The first url (microsoft) prints nothing, the second (gcc.gnu.org) 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)
   at Ftest.main (Ftest)

)


---

import java.net.*;
import java.util.*;
import java.io.*;

public class Ftest {

 public static void main(String[] args) {
    String url = "ftp://ftp.microsoft.com/ResKit/y2kfix/";
    // String url = ftp://gcc.gnu.org/";

    try {
      InputStream input = (new URL(url)).openStream();
      BufferedReader file = new BufferedReader(new InputStreamReader(input));
      System.err.println("START");
      while (file.ready()) {
        String line = file.readLine();
        System.err.println(">" + line + "<");
      }
      System.err.println("DONE");

    } catch (Exception e) {
      e.printStackTrace();
    }

  }

}


-- 
           Summary: FTP directory listing doesn't work
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: r_ovidius at eml dot cc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27163


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-21 21:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 17:28 [Bug libgcj/27163] New: FTP directory listing doesn't work r_ovidius at eml dot cc
2006-04-19 18:39 ` [Bug classpath/27163] " tromey at gcc dot gnu dot org
2006-04-19 18:56 ` tromey at gcc dot gnu dot org
2006-04-20 17:20 ` r_ovidius at eml dot cc
2006-04-21 19:05 ` tromey at gcc dot gnu dot org
2006-04-21 21:44 ` cvs-commit at developer dot classpath dot org
2006-04-21 21:53 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).