From: Robin Green Date: Fri, 14 Jan 2005 21:12:46 +0000 (+0000) Subject: File.java (toURI): Generate a URI which we understand. X-Git-Tag: releases/gcc-4.0.0~1571 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd3395a50bf61702cce7c573f02caebbfd536fc2;p=thirdparty%2Fgcc.git File.java (toURI): Generate a URI which we understand. 2005-01-14 Robin Green * java/io/File.java (toURI): Generate a URI which we understand. From-SVN: r93664 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 40b9998232ed..b36548a75532 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2005-01-14 Robin Green + + * java/io/File.java (toURI): Generate a URI which we understand. + 2005-01-13 Graydon Hoare * include/jni.h (_Jv_JNIEnv::bottom_locals): New field. diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 187558dacb40..2bbf47f92613 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -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) {