Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jni-interface.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index 83a414b..e2a89cb 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -581,6 +581,14 @@ vm_jni_release_byte_array_elements(struct vm_jni_env *env, jobject array, free(elems); } +static void * +vm_jni_get_direct_buffer_address(struct vm_jni_env *env, jobject buf) +{ + /* We can't return direct buffer because we use machine word size + elements for arrays. */ + return NULL; +} + /* * The JNI native interface table. * See: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html @@ -914,7 +922,7 @@ void *vm_jni_native_interface[] = { NULL, /* NewDirectByteBuffer */ /* 230 */ - NULL, /* GetDirectBufferAddress */ + vm_jni_get_direct_buffer_address, NULL, /* GetDirectBufferCapacity */ NULL, NULL, -- 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