fix autoclass when return

This commit is contained in:
Mathieu Virbel 2012-08-15 23:36:40 +02:00
parent 2c2adefb6a
commit 7eecc34237
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ cdef convert_jobject_to_python(JNIEnv *j_env, bytes definition, jobject j_object
if r not in jclass_register: if r not in jclass_register:
from reflect import autoclass from reflect import autoclass
ret_jc = autoclass(r)(noinstance=True) ret_jc = autoclass(r.replace('/', '.'))(noinstance=True)
else: else:
ret_jc = jclass_register[r](noinstance=True) ret_jc = jclass_register[r](noinstance=True)
ret_jc.instanciate_from(j_object) ret_jc.instanciate_from(j_object)