harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r616836 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_array.cpp
Date Wed, 30 Jan 2008 18:37:30 GMT
Author: gshimansky
Date: Wed Jan 30 10:37:17 2008
New Revision: 616836

URL: http://svn.apache.org/viewvc?rev=616836&view=rev
Log:
Added check whether array element of a class is initialized. If not it has
to be initialized explicitly because no operations can be done on objects
instances of uninitialized class.


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_array.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_array.cpp?rev=616836&r1=616835&r2=616836&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_array.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jni/jni_array.cpp Wed Jan 30 10:37:17 2008
@@ -67,6 +67,8 @@
     ObjectHandle elem_handle = (ObjectHandle)initialElement;
 
     Class* clss = jclass_to_struct_Class(elementClass);
+    if (!ensure_initialised(jni_env, clss))
+        return NULL;
 
     Class *arr_clss = (Class *)class_get_array_of_class(clss);
 



Mime
View raw message