env->CallIntMethod(aJavaObject, hashCodeMID), (int) inst->GetInstance(), iid_str));
(PRUint32) env->CallIntMethod(aJavaObject, hashCodeMID), (PRUint32) inst->GetInstance(), iid_str));
GetXPCOMInstFromProxy(JNIEnv* env, jobject aJavaObject, void** aResult){  NS_PRECONDITION(aResult != nsnull, "null ptr");  if (!aResult)    return NS_ERROR_NULL_POINTER;  long xpcom_obj = env->CallStaticIntMethod(xpcomJavaProxyClass,                                            getNativeXPCOMInstMID, aJavaObject);  if (!xpcom_obj || env->ExceptionCheck()) {    return NS_ERROR_FAILURE;  }  *aResult = NS_REINTERPRET_CAST(void*, xpcom_obj);#ifdef DEBUG_JAVAXPCOM  JavaXPCOMInstance* inst = NS_STATIC_CAST(JavaXPCOMInstance*, *aResult);  nsIID* iid;  inst->InterfaceInfo()->GetInterfaceIID(&iid);  char* iid_str = iid->ToString();  LOG(("< GetXPCOMInstFromProxy (Java=%08x | XPCOM=%08x | IID=%s)\n",       env->CallIntMethod(aJavaObject, hashCodeMID),       (int) inst->GetInstance(), iid_str));  PR_Free(iid_str);  nsMemory::Free(iid);#endif  return NS_OK;}