From fe6820b1bbc677895a1a8edfadc3bab71d041470 Mon Sep 17 00:00:00 2001 From: Dylan Chen Date: Mon, 16 Oct 2023 14:37:04 +0800 Subject: [PATCH] fix --- src/java_binding/src/lib.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/java_binding/src/lib.rs b/src/java_binding/src/lib.rs index 6edf4d29ce557..aa7e564ed1ace 100644 --- a/src/java_binding/src/lib.rs +++ b/src/java_binding/src/lib.rs @@ -12,18 +12,4 @@ // See the License for the specific language governing permissions and // limitations under the License. -#![feature(result_option_inspect)] - -use std::ffi::c_void; - -use jni::sys::{jint, JNI_VERSION_1_2}; -use jni::JavaVM; -use risingwave_jni_core::register_native_method_for_jvm; - -#[no_mangle] -#[allow(non_snake_case)] -pub extern "system" fn JNI_OnLoad(jvm: JavaVM, _reserved: *mut c_void) -> jint { - let _ = register_native_method_for_jvm(&jvm) - .inspect_err(|_e| eprintln!("unable to register native method")); - JNI_VERSION_1_2 -} +pub use risingwave_jni_core::*;