This is the mail archive of the java@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]

java.io.File question


I looked at PR 4481 a little bit today.

First, we don't really seem to handle Windows paths very well.  My
fixlet to 4481 continues this tradition.  Do we have a plan for how we
want to handle Windows paths here?

Second, this code in File.normalizePath seems wrong:

    if (dupSeparator.equals("\\") && dupIndex == 0)
      dupIndex = p.indexOf(dupSeparator, 1);

I think that string should read "\\\\".

Tom


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