This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: java.io.File: "normalize" path names
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: java.io.File: "normalize" path names
- From: Per Bothner <per at bothner dot com>
- Date: 12 Apr 2001 07:24:58 -0700
- Cc: java-patches at gcc dot gnu dot org
- References: <3AD574DC.626F1FDD@albatross.co.nz>
Bryce McKinlay <bryce@albatross.co.nz> writes:
> Path names represented by File objects should not contain "any
> duplicate or redundant separator characters". This patch "normalizes"
> File paths which contain such characters, consistent with the JDK.
There is also code in java/net/URLStreamHandler.java (parseURL)
to normalize URLs. I'm skeptical as to whether that's a good idea,
but I don't know if JDK does the same.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/