Commit 45571704 by Tom Tromey Committed by Tom Tromey

* java/io/File.java (toURL): Use getAbsolutePath and `file://'.

From-SVN: r45556
parent 1a8a749c
2001-09-11 Tom Tromey <tromey@redhat.com>
* java/io/File.java (toURL): Use getAbsolutePath and `file://'.
2001-09-10 Tom Tromey <tromey@redhat.com>
* java/util/Properties.java (load): Correctly read \u sequences.
......
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment