Correct Rust -> Java method call semantics to avoid double-conversion