]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
File.java (toURI): Generate a URI which we understand.
authorRobin Green <greenrd@greenrd.org>
Fri, 14 Jan 2005 21:12:46 +0000 (21:12 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 14 Jan 2005 21:12:46 +0000 (21:12 +0000)
2005-01-14  Robin Green  <greenrd@greenrd.org>

* java/io/File.java (toURI): Generate a URI which we understand.

From-SVN: r93664

libjava/ChangeLog
libjava/java/io/File.java

index 40b9998232edeff4e58cd384291beae135ee5cac..b36548a7553206673875f4cfdb43328d15e96209 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-14  Robin Green  <greenrd@greenrd.org>
+
+       * java/io/File.java (toURI): Generate a URI which we understand.
+
 2005-01-13  Graydon Hoare  <graydon@redhat.com>
 
        * include/jni.h (_Jv_JNIEnv::bottom_locals): New field.
index 187558dacb40e87faff3d1a9a80cad2b2ea11667..2bbf47f926130c14d17b9d92e262da00ab3bb0ff 100644 (file)
@@ -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)
       {