We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2debf commit 9160772Copy full SHA for 9160772
README.md
@@ -87,7 +87,7 @@ pub extern "system" fn Java_mp_code_Client_connect<'local>(
87
let config_new = match jni_toolbox::from_java_static::<Config>(&mut env, config) {
88
Ok(x) => x,
89
Err(e) => {
90
- let _ = env.throw_new("java/lang/RuntimeException", format!("{e:?}"));
+ let _ = env.throw_new(e.jclass(), format!("{e:?}"));
91
return std::ptr::null_mut();
92
}
93
};
@@ -111,7 +111,7 @@ pub extern "system" fn Java_mp_code_Client_connect<'local>(
111
match ret.into_java(&mut env) {
112
Ok(fin) => fin,
113
114
115
std::ptr::null_mut()
116
117
0 commit comments