diff options
Diffstat (limited to 'src/vpp-api/java/jvpp-core')
-rw-r--r-- | src/vpp-api/java/jvpp-core/jvpp_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/java/jvpp-core/jvpp_core.c b/src/vpp-api/java/jvpp-core/jvpp_core.c index e57c62a3e9f..b12f63af16f 100644 --- a/src/vpp-api/java/jvpp-core/jvpp_core.c +++ b/src/vpp-api/java/jvpp-core/jvpp_core.c @@ -55,9 +55,9 @@ JNIEXPORT void JNICALL Java_io_fd_vpp_jvpp_core_JVppCoreImpl_init0 plugin_main->callbackObject = (*env)->NewGlobalRef(env, callback); plugin_main->callbackClass = (jclass)(*env)->NewGlobalRef(env, (*env)->GetObjectClass(env, callback)); - // verify API has not changed since jar generation + // verify API has not changed since jar generation (exit on mismatch) #define _(N) \ - get_message_id(env, #N); \ + if (get_message_id(env, #N) == 0) return; foreach_supported_api_message; #undef _ |