This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] File.toURI creates bogus URI


Attachment: txt00128.txt
Description: Text document

--- java/io/File.java.orig	2004-12-05 22:06:50.256675952 +0000
+++ java/io/File.java	2004-12-05 22:56:57.640484120 +0000
@@ -936,7 +936,7 @@
         
     try
       {
-	return new URI("file", "", abspath.replace(separatorChar, '/'));
+	return new URI("file", abspath.replace(separatorChar, '/'), null);
       }
     catch (URISyntaxException use)
       {

Attachment: FileURLTest.java
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]