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]

Re: java/io/File.toURI()


This is another example of why the regression-fixes-only period for libgcj was a bad idea!

See: http://gcc.gnu.org/ml/java-patches/2004-q4/msg00860.html

Bryce

Andrew Haley wrote:

Just a simple mistake, I think.

Andrew.


2005-01-28 Andrew Haley <aph@redhat.com>


	* java/io/File.java: The filename should be passed to the
	scheme-specific part of a URI, not the fragment part.

Index: java/io/File.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/File.java,v
retrieving revision 1.42
diff -p -2 -c -r1.42 File.java
*** java/io/File.java 9 Sep 2004 09:43:33 -0000 1.42
--- java/io/File.java 28 Jan 2005 19:34:29 -0000
*************** public class File implements Serializabl
*** 937,941 ****
try
{
! return new URI("file", "", abspath.replace(separatorChar, '/'));
}
catch (URISyntaxException use)
--- 937,941 ----
try
{
! return new URI("file", abspath.replace(separatorChar, '/'), "");
}
catch (URISyntaxException use)




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