Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jni-interface.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index 59391e9..1bcedf4 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -206,6 +206,13 @@ vm_jni_get_static_method_id(struct vm_jni_env *env, jclass clazz, return mb; } +static jobject vm_jni_new_string_utf(struct vm_jni_env *env, const char *bytes) +{ + enter_vm_from_jni(); + + return vm_object_alloc_string_from_c(bytes); +} + static const jbyte* vm_jni_get_string_utf_chars(struct vm_jni_env *env, jobject string, jboolean *is_copy) @@ -655,7 +662,7 @@ void *vm_jni_native_interface[] = { /* 165 */ NULL, /* GetStringChars */ NULL, /* ReleaseStringChars */ - NULL, /* NewStringUTF */ + vm_jni_new_string_utf, NULL, /* GetStringUTFLength */ vm_jni_get_string_utf_chars, -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel