Our current patch is somewhat ad hoc like this:
    if (path.startsWith(separator))
         return(path);
+  if (pathSeparatorChar != ':' &&
+       path.charAt(1) == ':')
+       return path;

    return(System.getProperty("user.dir") + separator + path);

As I said, a better way to achieve this is to delegate these platform-dependent 
judgements to a standalone platform-wise class, because there're other places 
also have the same problem. I haven't found such infrastructure in Classpath 
yet. It seems to need considerable resources to do the refactoring stuff. 

Regards...
Gansha

-----Original Message-----
From: Tom Tromey [mailto:[EMAIL PROTECTED]]
Sent: 2001?7?31? 1:14
To: Wu, Gansha
Cc: [EMAIL PROTECTED]
Subject: Re: Problems with File.java when running Jigsaw with ORP plus Classpa th

Gansha> Problems in java/io/File.java:
Gansha> it's better to delegate these platform-dependent judgements to
Gansha> a standalone platform-wise class.

>I agree.  Do you have a patch?
>Is there even infrastructure for this in Classpath?


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to