diff options
author | Mark Wielaard <mark@klomp.org> | 2004-07-08 11:16:04 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2004-07-08 11:16:04 +0000 |
commit | 9c73c75b6beb9e553b783c18f2fec68a03190087 (patch) | |
tree | cedbbec412f1b1a09868d8c7673cc4c7dce52d3e | |
parent | 11c259e3045d490f05c432a9f95eeb434649abef (diff) | |
download | classpath-9c73c75b6beb9e553b783c18f2fec68a03190087.tar.gz |
2004-07-08 Ito Kazumitsu <kaz@maczuka.gcd.org>
* java/io/File.java
(toURI): Use new URI(scheme, userInfo, host, port, path,
query, fragment).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | java/io/File.java | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2004-07-08 Ito Kazumitsu <kaz@maczuka.gcd.org> + * java/io/File.java + (toURI): Use new URI(scheme, userInfo, host, port, path, + query, fragment). + +2004-07-08 Ito Kazumitsu <kaz@maczuka.gcd.org> + * java/text/MessageFormat.java (formatInternal): Append "{n}" if argument n is unavailable. (format(Object, StringBuffer, FieldPosition)): This diff --git a/java/io/File.java b/java/io/File.java index 1790fe8c6..9d63632cf 100644 --- a/java/io/File.java +++ b/java/io/File.java @@ -781,7 +781,9 @@ public class File implements Serializable, Comparable try { - return new URI("file", "", abspath.replace(separatorChar, '/')); + return new URI("file", null, null, -1, + abspath.replace(separatorChar, '/'), + null, null); } catch (URISyntaxException use) { |