summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2004-07-08 11:16:04 +0000
committerMark Wielaard <mark@klomp.org>2004-07-08 11:16:04 +0000
commit9c73c75b6beb9e553b783c18f2fec68a03190087 (patch)
treecedbbec412f1b1a09868d8c7673cc4c7dce52d3e
parent11c259e3045d490f05c432a9f95eeb434649abef (diff)
downloadclasspath-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--ChangeLog6
-rw-r--r--java/io/File.java4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 30f4552e4..56693aef8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
{