When I compile my project in eclipse indigo using JDK 7, I get the following error dialog
with the following stacktrace
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 32 in method ... at offset 0
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
I've found a relevant bug here and used the suggested workaround of using jvm option -XX:-UseSplitVerifier
and although it works, this bug still confuses me.
Does anyone know why this is happening and why the workaround...works?
--Note--
The project compiles fine using JDK 6.