mirror of git://gcc.gnu.org/git/gcc.git
2004-09-15 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Handler.java (openConnection): Don't throw exception if host part for file: URI is present. setURL() keeps file: protocol if ftp: protocol is not available. From-SVN: r87546
This commit is contained in:
parent
dad975d22d
commit
c36992ffc8
|
@ -1,3 +1,10 @@
|
||||||
|
2004-09-15 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* gnu/java/net/protocol/file/Handler.java
|
||||||
|
(openConnection): Don't throw exception if host part for file: URI is
|
||||||
|
present. setURL() keeps file: protocol if ftp: protocol is not
|
||||||
|
available.
|
||||||
|
|
||||||
2004-09-14 Richard Henderson <rth@redhat.com>
|
2004-09-14 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* java/lang/natPosixProcess.cc (waitForSignal): Ignore return
|
* java/lang/natPosixProcess.cc (waitForSignal): Ignore return
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Handler.java -- "file" protocol handler for java.net
|
/* Handler.java -- "file" protocol handler for java.net
|
||||||
Copyright (C) 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
|
Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Classpath.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
@ -76,17 +76,14 @@ public class Handler extends URLStreamHandler
|
||||||
String host = url.getHost();
|
String host = url.getHost();
|
||||||
if ((host != null) && (! host.equals("")))
|
if ((host != null) && (! host.equals("")))
|
||||||
{
|
{
|
||||||
throw new IOException("ftp protocol handler not yet implemented.");
|
|
||||||
/*
|
|
||||||
// Reset the protocol (and implicitly the handler) for this URL.
|
// Reset the protocol (and implicitly the handler) for this URL.
|
||||||
// Then have the URL attempt the connection again, as it will
|
// Then have the URL attempt the connection again, as it will
|
||||||
// get the changed handler the next time around.
|
// get the changed handler the next time around.
|
||||||
|
// If the ftp protocol handler is not installed, an
|
||||||
|
// exception will be thrown from the new openConnection() call.
|
||||||
setURL (url, "ftp", url.getHost(), url.getPort(), url.getFile(),
|
setURL (url, "ftp", url.getHost(), url.getPort(), url.getFile(),
|
||||||
url.getRef());
|
url.getRef());
|
||||||
// Until the ftp protocol handler is written, this will cause
|
|
||||||
// a NullPointerException.
|
|
||||||
return url.openConnection();
|
return url.openConnection();
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Connection(url);
|
return new Connection(url);
|
||||||
|
|
Loading…
Reference in New Issue