File.getAbsolutePath() bugfix
    Archie Cobbs 
    archie at whistle.com
       
    Thu Jan 13 11:12:05 PST 2000
    
    
  
Mike Linksvayer writes:
> File.getAbsolutePath() was not stripping out extra "." path
> components, which is contrary to the behavior of the JDK, and
> breaks user code that relies on the JDK behavior.  getCanonicalPath()
> was also broken was a result.
> 
> The following code produces a simple case:
> 
> 	System.err.println(new File(".").getAbsolutePath());
> 
> If current directory is /foo, output under the JDK is "/foo", output
> under Kaffe is "/foo/.".
> 
> I've included a simple patch below, and I'll look into a regression
> test soon.
Thanks, fixed!
-Archie
___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com
    
    
More information about the kaffe
mailing list