We should call the constructor virtually not statically. Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jni-interface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index ac8188f..cc1e7ca 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -945,7 +945,7 @@ vm_jni_new_object_a(struct vm_jni_env *env, jclass clazz, jmethodID method, packed_args[0] = (unsigned long) result; pack_args(method, packed_args + 1, args); - vm_call_method_a(method, packed_args); + vm_call_method_this_a(method, result, packed_args); return result; } -- 1.6.0.4 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel