commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java.io.File#toURI()


From: Ito Kazumitsu
Subject: java.io.File#toURI()
Date: Thu, 03 Jun 2004 07:26:21 +0900
User-agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.2 (i386-unknown-freebsd4.7) MULE/5.0 (SAKAKI)

Hi,

I originally posted this to the general discussion list.  But I should
have sent it here.

ChangeLog entry:

2004-06-02 Ito Kazumitsu  <address@hidden>

        * java/io/File.java
        (toURI): Use new URI(scheme, userInfo, host, port, path,
        query, fragment).

--- java/io/File.java.orig      Tue Jun  1 22:52:28 2004
+++ java/io/File.java   Thu Jun  3 07:08:16 2004
@@ -781,7 +781,9 @@
         
     try
       {
-       return new URI("file", "", abspath.replace(separatorChar, '/'));
+        return new URI("file", null, null, -1,
+                       abspath.replace(separatorChar, '/'),
+                       null, null);
       }
     catch (URISyntaxException use)
       {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]