OSDN Git Service

Fix JNI GetDirectBufferAddress.
[android-x86/dalvik.git] / vm / Jni.c
index f7a21ff..09e36a5 100644 (file)
--- a/vm/Jni.c
+++ b/vm/Jni.c
@@ -2747,7 +2747,7 @@ static void* GetDirectBufferAddress(JNIEnv * env, jobject buf)
         return 0;
     }
 
-    tempMethod = (*env)->GetMethodID(env, tempClass, "getBaseAddress",
+    tempMethod = (*env)->GetMethodID(env, tempClass, "getEffectiveAddress",
              "()Lorg/apache/harmony/luni/platform/PlatformAddress;");        
     if(!tempMethod){
         return 0;