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");