()
| 1599 | } |
| 1600 | |
| 1601 | pub(crate) unsafe fn get_inv_arg_basic_rust_constructor_method() -> errors::Result<jmethodID> { |
| 1602 | get_cached!( |
| 1603 | INV_ARG_BASIC_RUST_CONSTRUCTOR_METHOD, |
| 1604 | { |
| 1605 | let env = get_thread_local_env()?; |
| 1606 | |
| 1607 | let inv_arg_basic_rust_constructor_method_signature = |
| 1608 | "(Ljava/lang/String;Ljava/lang/Object;)V"; |
| 1609 | let cstr1 = utils::to_c_string("<init>"); |
| 1610 | let cstr2 = utils::to_c_string(inv_arg_basic_rust_constructor_method_signature); |
| 1611 | let j = unsafe { |
| 1612 | (opt_to_res(get_jni_get_method_id())?)( |
| 1613 | env, |
| 1614 | get_invocation_arg_class()?, |
| 1615 | cstr1, |
| 1616 | cstr2, |
| 1617 | ) |
| 1618 | }; |
| 1619 | utils::drop_c_string(cstr1); |
| 1620 | utils::drop_c_string(cstr2); |
| 1621 | |
| 1622 | j |
| 1623 | }, |
| 1624 | set_inv_arg_basic_rust_constructor_method |
| 1625 | ) |
| 1626 | } |
| 1627 | |
| 1628 | pub(crate) fn set_class_to_invoke_clone_and_cast(j: jclass) { |
| 1629 | debug("Called set_class_to_invoke_clone_and_cast"); |
no outgoing calls
no test coverage detected