An interesting bit about this "statement expected" error. I've been generating my own builds, and out of a few dozen builds that
I got as far as feeding to xcode, TWO so far have failed due to this. Since I was watching for it, I re-ran the identical build and
the error did not repeat. The errant label seems to be a free floating label, inserted randomly at the end of a method. Everything
else about the file looks well-formed.
So, based on this evidence, theories involving resource exhaustion, rogue processes and other bolts from the blue
are less likely.
JAVA_VOID com_codename1_ui_Display_invokeAndBlock___java_lang_Runnable_boolean(CODENAME_ONE_THREAD_STATE, JAVA_OBJECT __cn1ThisObject, JAVA_OBJECT __cn1Arg1, JAVA_BOOLEAN __cn1Arg2) {
volatile JAVA_INT ilocals_2_ = 0; /* dropEvents */
DEFINE_INSTANCE_METHOD_STACK(4, 7, 0, 2603, 2629);
locals[0].data.o = __cn1ThisObject; locals[0].type = CN1_TYPE_OBJECT; locals[1].data.o = __cn1Arg1;
locals[1].type = CN1_TYPE_OBJECT;
...
label_L1075083982: END_TRY();
__CN1_DEBUG_INFO(1230);
BC_ASTORE(6);
__CN1_DEBUG_INFO(1231);
set_field_com_codename1_ui_Display_dropEvents(threadStateData, 0 /* ICONST_0 */, __cn1ThisObject);
__CN1_DEBUG_INFO(1232);
BC_ALOAD(6);
throwException(threadStateData, POP_OBJ());
label_L986065593:
__CN1_DEBUG_INFO(1231);
set_field_com_codename1_ui_Display_dropEvents(threadStateData, 0 /* ICONST_0 */, __cn1ThisObject);
__CN1_DEBUG_INFO(1233);
releaseForReturnInException(threadStateData, cn1LocalsBeginInThread, methodBlockOffset);
return;
label_L590511187:
}