Bug in the kaffe-script?
Stefan Hellkvist
d93-sth at nada.kth.se
Thu Feb 24 00:01:34 PST 2000
Thanks Godmar,
Now I see the problem here.
The classes in the java directory were taken from the Sun JDK1.2. The
reason for this was that they did not exist before in Kaffe. The
reason it fails in Kaffe is simply because it calls a native function
which doesn't exist in Kaffe. I didn't see this before because I
didn't use that function earlier.
The reason it worked if I put the '.' last in CLASSPATH is that the
class we're speaking of here is nowadays implemented in Kaffe so the
reason to have the java directory is just not there anymore.
/Stefan
On Wed, 23 Feb 2000, Godmar Back wrote:
>
>
> Stefan,
>
> this is the desired behavior.
>
> For instance, if there is a directory ./java with say
> ./java/lang/Object.class, then I *want* Kaffe to load this
> file for java.lang.Object and not the java/lang/object.class from
> Klasses.jar. Although it can be confusing (the whole CLASSPATH idea
> is ill-received IMO), this feature comes in very handy if you want
> to debug classes in java.* or kaffe.*
>
> As for Sun's JDK: I think we're compatible with JDK 1.1.x here.
> We're not compatible with 1.2. If it "worked" for you, then there's
> two possible reasons: a) if you used 1.2, then it worked cause it's
> different in 1.2. b) if you used 1.1.x, it could be that the
> classes you had in ./java were Sun's classes and happened to be identical.
> You can use -verbose to see where classes come from.
>
> We may switch kaffe to 1.2 behavior at some point in the future, if
> there's a need. Then we'd have to support the -X options and bootclasspath
> and all that stuff.
>
> Maybe I don't really understand the problem that was biting you though.
>
> - Godmar
>
> >
> >
> > Hi,
> >
> > I've noticed that Kaffe behaves differently comparing to JDK in
> > respect to where the current directory ends up in the CLASSPATH. I happened to
> > have a directory in the current directory called java which contained
> > classes. This confused kaffe so much that it failed to
> > locate the standard Java classes in Klasses.zip.
> >
> > I don't know is this is a bug or not but JDK is not confused by this
> > program.
> >
> > Simply placing the '.' last in the CLASSPATH solved the problem
> > though.
> >
> > /Stefan
> >
> >
> > The patch to kaffe/scripts/kaffe:
> > 46c46
> > < CLASSPATH="${CLASSPATH-.}"
> > ---
> > > #CLASSPATH="${CLASSPATH-.}"
> > 58c58
> > < export CLASSPATH
> > ---
> > > export CLASSPATH=$CLASSPATH:.
> >
> >
> >
> >
> >
> >
> >
> > main(i){putchar((1312900435>>((i-1)/2|i>5)*8)+!(1&i|i>4))^78&&main(++i);}
> > __________________________________________________________________
> > Stefan Hellkvist, Work ph.: +46-8-585 33829, Cell.: +46-739 760449
> > http://www.testbed.era.ericsson.se/~erasshe
> > __________________________________________________________________
> >
>
>
More information about the kaffe
mailing list