Bug in the kaffe-script?

Stefan Hellkvist d93-sth at nada.kth.se
Wed Feb 23 04:01:25 PST 2000


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