diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-14 21:12:46 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-14 21:12:46 +0000 |
commit | 3b2b2861f9dd8dc58766bc94b071f609960e4ac5 (patch) | |
tree | 154b264e84b27d746a97c3e45edb0fdb7407cba6 /libjava/java/io | |
parent | 6bab8499dedc6254126e5752d3fbb17cbd62ace5 (diff) | |
download | ppe42-gcc-3b2b2861f9dd8dc58766bc94b071f609960e4ac5.tar.gz ppe42-gcc-3b2b2861f9dd8dc58766bc94b071f609960e4ac5.zip |
2005-01-14 Robin Green <greenrd@greenrd.org>
* java/io/File.java (toURI): Generate a URI which we understand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/File.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 187558dacb4..2bbf47f9261 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -1,5 +1,5 @@ /* File.java -- Class representing a file on disk - Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004 + Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -936,7 +936,7 @@ public class File implements Serializable, Comparable try { - return new URI("file", "", abspath.replace(separatorChar, '/')); + return new URI("file", abspath.replace(separatorChar, '/'), null); } catch (URISyntaxException use) { |