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]

Re: java.io.File: "normalize" path names


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/


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