diff --git a/unix/modjni.c b/unix/modjni.c index 929a0131f12e05d8d5a19c3299af1a284f31f3b8..70179425642fe3b3417d086a8eb6f99cf13be3b0 100644 --- a/unix/modjni.c +++ b/unix/modjni.c @@ -224,6 +224,10 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) { } else { return false; } + } else if (type == &jobject_type) { + printf("TODO: Check java arg type!!\n"); + mp_obj_jobject_t *jo = arg; + out->l = jo->obj; } else { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "arg type not supported")); }