Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit fe6820b.
  • Loading branch information
chenzl25 committed Oct 17, 2023
1 parent 7612fe1 commit b004840
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/java_binding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub use risingwave_jni_core::*;
#![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
}

0 comments on commit b004840

Please sign in to comment.