use catch_panic::catch_panic; use jni::JNIEnv; use jni::sys::jobject; #[catch_panic] fn no_default(_env: JNIEnv) -> jobject { panic!(); } fn main() {}