harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r579146 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp
Date Tue, 25 Sep 2007 09:24:03 GMT
Author: gshimansky
Date: Tue Sep 25 02:24:03 2007
New Revision: 579146

URL: http://svn.apache.org/viewvc?rev=579146&view=rev
Log:
Applied patch to fix HARMONY-4841
[drlvm][jni] behavior of CallVoidMethod incompatible with RI

Methods <init> should not be called virtually.


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp?rev=579146&r1=579145&r2=579146&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_method.cpp Tue Sep 25 02:24:03 2007
@@ -222,7 +222,9 @@
     
     if (exn_raised()) return;
 
-    call_method_no_ref_result(jni_env, obj, methodID, args, 0, FALSE);
+    String *name = ((Method*)methodID)->get_name();
+    bool non_virtual = name == VM_Global_State::loader_env->Init_String;
+    call_method_no_ref_result(jni_env, obj, methodID, args, 0, non_virtual);
 } //CallVoidMethodA
 
 



Mime
View raw message