diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-12 04:28:32 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-12 04:28:32 +0000 |
commit | 263b58be5d2b427cafa819872d2e5806a754b756 (patch) | |
tree | caee22a4b452a92ea653b08664d8ad0889522dc9 /libjava/java/io/File.java | |
parent | 1cf12db400dfef77434ae5122d430e982c42a6fa (diff) | |
download | ppe42-gcc-263b58be5d2b427cafa819872d2e5806a754b756.tar.gz ppe42-gcc-263b58be5d2b427cafa819872d2e5806a754b756.zip |
* java/io/File.java (toURL): Use getAbsolutePath and `file://'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45556 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/File.java')
-rw-r--r-- | libjava/java/io/File.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 12297acc4ae..3ecd7bf037d 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -281,7 +281,8 @@ public class File implements Serializable, Comparable public URL toURL () throws MalformedURLException { - return new URL ("file:" + path + (isDirectory() ? "/" : "")); + return new URL ("file://" + getAbsolutePath () + + (isDirectory() ? "/" : "")); } private final native boolean performMkdir (); |