mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-16 11:00:24 +08:00
* java/io/File.java (toURL): Use getAbsolutePath and `file://'.
From-SVN: r45556
This commit is contained in:
parent
1a8a749c24
commit
45571704cf
@ -1,3 +1,7 @@
|
||||
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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user