Handler.java (openConnection): Use `setURL', not `url.set'.
authorTom Tromey <tromey@cygnus.com>
Fri, 21 Apr 2000 14:18:49 +0000 (14:18 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 21 Apr 2000 14:18:49 +0000 (14:18 +0000)
* gnu/gcj/protocol/file/Handler.java (openConnection): Use
`setURL', not `url.set'.

From-SVN: r33306

libjava/ChangeLog
libjava/gnu/gcj/protocol/file/Handler.java

index d5e16880ad694d4af803036a9ec59beb4995dff7..4362afeb282a68163d5fadf2a53d21063ee10d33 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-21  Tom Tromey  <tromey@cygnus.com>
+
+       * gnu/gcj/protocol/file/Handler.java (openConnection): Use
+       `setURL', not `url.set'.
+
 2000-04-20  Tom Tromey  <tromey@cygnus.com>
 
        Fix for PR java.io/204:
index 285880d8c3d8954f5cef15b33cb873d3efd358f3..b12ebd42b290424da817bb21c4b09df96a1d7915 100644 (file)
@@ -1,6 +1,6 @@
 // Handler.java - URLStreamHandler for file protocol.
 
-/* Copyright (C) 1999  Free Software Foundation
+/* Copyright (C) 1999, 2000  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -37,7 +37,7 @@ public class Handler extends URLStreamHandler
        // Reset the protocol (and implicitly the handler) for this URL.
        // Then have the URL attempt the connection again, as it will
        // get the changed handler the next time around.
-       url.set("ftp", url.getHost(), url.getPort(), url.getFile(),
+       setURL (url, "ftp", url.getHost(), url.getPort(), url.getFile(),
                url.getRef());
        // Until the ftp protocol handler is written, this will cause
        // a NullPointerException.