This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: bug fix
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: bug fix
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 21 Apr 2000 08:21:18 -0600
- Reply-To: tromey at cygnus dot com
Code in gnu.gcj.protocol.file.Handler incorrectly called an
inaccessible method. This was allowed due to a compiler bug (PR 124).
The appended patch fixes the runtime bug.
2000-04-21 Tom Tromey <tromey@cygnus.com>
* gnu/gcj/protocol/file/Handler.java (openConnection): Use
`setURL', not `url.set'.
Tom
Index: gnu/gcj/protocol/file/Handler.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/gnu/gcj/protocol/file/Handler.java,v
retrieving revision 1.3
diff -u -r1.3 Handler.java
--- Handler.java 2000/03/07 19:55:25 1.3
+++ Handler.java 2000/04/21 14:18:17
@@ -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 @@
// 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.