[kaffe] WARNING Bad bytecode! Illegal exception table entry

Ito Kazumitsu kaz at maczuka.gcd.org
Fri May 21 19:48:02 PDT 2004


Hi,

The following program, when compiled with kjc, prints the
strange message, but runs normally when compiled with Sun's javac.

bash-2.05b$ cat B.java
public class B {
  public static void main(String[] args) {
    System.out.println(foo());
  }

  private static int foo() {
    int n = 0;
    try {
      if (true) {
	  throw new Exception("Test");
      }
      n = 1;
    }
    catch (Exception e) {
      n = 2;
    }
    return n;
  }
}
bash-2.05b$ kaffe B
WARNING Bad bytecode! Illegal exception table entry: start_pc=136973798 is not lower than end_pc=136973744 in method B.foo(()I)
See Java Virtual Machine Specification 2nd Edition $4.7.3 for details.
Please report this bug to the developers of the application you're running on kaffe.
A simple fix might be to use another java compiler to build the application.
java.lang.Exception: Test
   at B.foo (B.java:10)
   at B.main (B.java:3)




More information about the kaffe mailing list