Normalized file path under win32

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Apr 15 19:34:00 GMT 2002


Adam King wrote:

>However, I don't think this is the correct way, so before I submit a real 
>patch, should I add a new method into natFileWin32/Posix.cc called 
>something like 'jstring java::io::File::platform_normalizePath( jstring )' 
>that does this change to the path separator and is called first 
>in File.normalizePath(String)? Or keep what I currently have?  Or
>something totally different?  Thanks,
>

I'd prefer to implement normalizePath in Java code if thats possible, 
even if it meant having separate functions for win32 and posix. But, 
your existing patch doesn't look so bad to me, if you add a comment 
explaining that its for windows.

regards

Bryce.




More information about the Java-patches mailing list