OSDN Git Service

"resolved conflicts for merge of 3a73bd to master"
authorAndy McFadden <fadden@android.com>
Fri, 5 Jun 2009 23:47:44 +0000 (16:47 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 5 Jun 2009 23:47:44 +0000 (16:47 -0700)
1  2 
vm/Jni.c

diff --cc vm/Jni.c
+++ b/vm/Jni.c
@@@ -2777,14 -2744,14 +2777,14 @@@ static void* GetDirectBufferAddress(JNI
  
      if(JNI_FALSE == (*env)->IsInstanceOf(env, buf, tempClass))
      {
 -        return 0;
 +        goto bail;
      }
  
-     tempMethod = (*env)->GetMethodID(env, tempClass, "getBaseAddress",
-              "()Lorg/apache/harmony/luni/platform/PlatformAddress;");
+     tempMethod = (*env)->GetMethodID(env, tempClass, "getEffectiveAddress",
+              "()Lorg/apache/harmony/luni/platform/PlatformAddress;");        
      if(!tempMethod){
 -        return 0;
 -    }    
 +        goto bail;
 +    }
      platformAddr = (*env)->CallObjectMethod(env, buf, tempMethod);
      platformAddrClass = (*env)->FindClass (env, 
              "org/apache/harmony/luni/platform/PlatformAddress");