Community
Participate
Working Groups
Using Version: 2.1.0 Build id: 200303202147 Compiling and running the Main class listed below results in the error: java.lang.VerifyError: (class: test/Main, method: ResultType signature: ()V) Illegal target of jump or branch Exception in thread "main" This seems to be a new problem. (The code comes from some generated code which worked properly in older versions. I just tested Eclipse 2.1 M3 build and it's ok) I tried to find the essence of the problem in the switch block. Even small changes solve the problem. (For example: removing case 2:break; block or replace default : throw newException(); with default : System.out.println();) package test; public class Main { private int i = 0; public static void main(String[] args) { System.out.println("Hello"); } final public void ResultType() throws Exception { switch (i) { case 1 : if (true) throw new Exception(); break; case 2 : break; default : throw new Exception(); } } }
*** This bug has been marked as a duplicate of 37621 ***