[Kaffe] bug found and fixed in java.io.File!

Moses DeJong dejong at cs.umn.edu
Tue Jan 26 20:07:35 PST 1999


On Tue, 26 Jan 1999, Archie Cobbs wrote:

> Moses DeJong writes:
> > I ran into a little problem with the java.io.File class in kaffe.
> > Here is the test code I wrote to check the java.io.File implementation.
> 
> Moses-
> 
> Your patches are appreciated but don't exactly implement what's
> described in:
> 
>   http://java.sun.com/products/jdk/1.2/docs/api/index.html

Well, I guess I missed that one. I think this will fix it.

public File(File dir, String name) {
    this( (dir == null) ? null : dir.getPath() , name);
}

Did you find any other problems with the patch?

later
mo

> 
> > public File(File dir, String name) {
> >         this(dir.getPath(), name);
> > }
> 
> I don't know if the spec has changed from 1.1 -> 1.2, but
> we generally try to follow the 1.2 specs.
> 
> Thanks,
> -Archie
> 
> ___________________________________________________________________________
> Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com
> 



More information about the kaffe mailing list