[kaffe] Exit code when an exception was uncaught

Daniel Bonniot Daniel.Bonniot at inria.fr
Fri Feb 25 05:38:19 PST 2005


Guilhem Lavaux wrote:
> Hi Daniel,
> 
> I had a few minutes free and checked it in the CVS. Now whenever there 
> is an uncaught exception happened kaffe-bin will return with 1 instead 
> of 0.
> 
> Cheers,
> 
> Guilhem.

Guilhem, thanks a lot for looking into this. However, I tried with the latest 
Debian package, which includes your change, and it does not seem to make any 
difference in this case. Here is the testcase, and transcript while running 
with JDK and kaffe.

$ cat Field.java
class Field {
   public static void main(String[] args)
   {
     throw new Error();
   }
}
$ javac Field.java
$ java Field && echo OOOOPS
Exception in thread "main" java.lang.Error
         at Field.main(Field.java:4)
$ kaffe Field && echo OOOOPS
java.lang.Error
    at Field.main (Field.java:4)
OOOOPS
$ kaffe -fullversion
...
   ChangeLog head   : 2005-02-15  Guilhem Lavaux  <guilhem at kaffe.org>


Cheers,

Daniel

PS: I checked, and unless I made a mistake, it did not look like it was the 
kaffe shell script losing the exit code.




More information about the kaffe mailing list