- jsyncro_field_Semaphore_bind = jxbt_get_sfield(env, "org/simgrid/msg/Semaphore", "bind", "J");
- if (!jsyncro_field_Semaphore_bind) {
- jxbt_throw_native(env,bprintf("Can't find some fields in Semaphore Java class. You should report this bug."));
- }
+ jsynchro_field_Semaphore_bind = jxbt_get_sfield(env, "org/simgrid/msg/Semaphore", "bind", "J");
+ xbt_assert(jsynchro_field_Semaphore_bind, "Native initialization of msg/Semaphore failed. Please report that bug");