diff options
| author | Mark Wielaard <mark@klomp.org> | 2005-11-17 10:58:46 +0000 |
|---|---|---|
| committer | Mark Wielaard <mark@klomp.org> | 2005-11-17 10:58:46 +0000 |
| commit | 5dd12d0fd420911109c6a98bba8c7f77c63fa36e (patch) | |
| tree | 08c0f9416e0640b54ea388128cdfb32faaa80685 /gnu/java/net/protocol/jar/Connection.java | |
| parent | 2eaf96bab3bae3b4c07103cfbf7bfbf75c6e42b2 (diff) | |
| download | classpath-5dd12d0fd420911109c6a98bba8c7f77c63fa36e.tar.gz | |
2005-11-17 Andrew Haley <aph@redhat.com>
* gnu/java/net/protocol/file/Connection.java (unquote): New
method.
(connect): Unquote filename.
* gnu/java/net/protocol/jar/Connection.java (get): Likewise.
* java/net/URL.java (URL): If the file part of a spec is absolute,
ignore the file part of its context.
Diffstat (limited to 'gnu/java/net/protocol/jar/Connection.java')
| -rw-r--r-- | gnu/java/net/protocol/jar/Connection.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/java/net/protocol/jar/Connection.java b/gnu/java/net/protocol/jar/Connection.java index e85487420..b787f8b9c 100644 --- a/gnu/java/net/protocol/jar/Connection.java +++ b/gnu/java/net/protocol/jar/Connection.java @@ -82,7 +82,9 @@ public final class Connection extends JarURLConnection if ("file".equals (url.getProtocol())) { - File f = new File (url.getFile()); + String fn = url.getFile(); + fn = gnu.java.net.protocol.file.Connection.unquote(fn); + File f = new File (fn); jf = new JarFile (f, true, ZipFile.OPEN_READ); } else |
