This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: File(URI) constructor.
- From: Anthony Green <green at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, commit-classpath at gnu dot org
- Date: Tue, 06 Jul 2004 09:07:45 -0700
- Subject: Re: Patch: File(URI) constructor.
- Organization: Red Hat, Inc.
- References: <1089083841.3020.39.camel@localhost.localdomain> <40EACB4B.10604@redhat.com>
On Tue, 2004-07-06 at 08:54, Bryce McKinlay wrote:
> Should this use equalsIgnoreCase() ?
Sure.
> normalizePath() will do the separatorChar replacement already.
>
Well, it does the following, which is different:
// On Windows, convert any '/' to '\'. This appears to be the same logic
// that Sun's Win32 Java performs.
if (separatorChar == '\\')
p = p.replace ('/', '\\');
What happens when separatorChar is neither / nor \ ? This is why I put my char replacement in.
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.