LOG("*** Finalize(java_obj=%s)\n", javaObjectName);
LOG(("*** Finalize(java_obj=%s)\n", javaObjectName));
XPCOM_NATIVE(FinalizeStub) (JNIEnv *env, jclass that, jobject aJavaObject){#ifdef DEBUG  jboolean isCopy;  jclass clazz = env->GetObjectClass(aJavaObject);  jstring name = (jstring) env->CallObjectMethod(clazz, getNameMID);  const char* javaObjectName = env->GetStringUTFChars(name, &isCopy);  LOG("*** Finalize(java_obj=%s)\n", javaObjectName);  if (isCopy)    env->ReleaseStringUTFChars(name, javaObjectName);#endif  void* obj = GetMatchingXPCOMObject(env, aJavaObject);  NS_ASSERTION(!IsXPTCStub(obj), "Expecting JavaXPCOMInstance, got nsJavaXPTCStub");  RemoveJavaXPCOMBinding(env, aJavaObject, nsnull);  delete (JavaXPCOMInstance*) obj;}