Skip to content

Commit 1e9d8e1

Browse files
committed
unix/modjni: py2jvalue: Pass jobject's down to Java.
So far, no signature check is done (TODO).
1 parent b0c08c8 commit 1e9d8e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

unix/modjni.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ STATIC bool py2jvalue(const char **jtypesig, mp_obj_t arg, jvalue *out) {
224224
} else {
225225
return false;
226226
}
227+
} else if (type == &jobject_type) {
228+
printf("TODO: Check java arg type!!\n");
229+
mp_obj_jobject_t *jo = arg;
230+
out->l = jo->obj;
227231
} else {
228232
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "arg type not supported"));
229233
}

0 commit comments

Comments
 (0)