(obj: jobject)
| 59 | } |
| 60 | |
| 61 | pub fn from_jobject(obj: jobject) -> errors::Result<Instance> { |
| 62 | let _jvm = cache::get_thread_local_env().map_err(|_| Jvm::attach_thread()); |
| 63 | |
| 64 | Ok(Instance { |
| 65 | jinstance: obj, |
| 66 | class_name: cache::UNKNOWN_FOR_RUST.to_string(), |
| 67 | skip_deleting_jobject: false, |
| 68 | }) |
| 69 | } |
| 70 | |
| 71 | pub fn from_jobject_with_global_ref(obj: jobject) -> errors::Result<Instance> { |
| 72 | let _jvm = cache::get_thread_local_env().map_err(|_| Jvm::attach_thread()); |
nothing calls this directly
no test coverage detected