[llvm-commits] [vmkit] r50225 - /vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Thu Apr 24 12:23:21 PDT 2008
Author: geoffray
Date: Thu Apr 24 14:23:21 2008
New Revision: 50225
URL: http://llvm.org/viewvc/llvm-project?rev=50225&view=rev
Log:
Implement GetObjectArrayElement
Modified:
vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp?rev=50225&r1=50224&r2=50225&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/Jni.cpp Thu Apr 24 14:23:21 2008
@@ -1655,7 +1655,12 @@
jobject GetObjectArrayElement(JNIEnv *env, jobjectArray array, jsize index) {
- assert(0 && "implement me");
+ BEGIN_EXCEPTION
+
+ return (jobject)((ArrayObject*)array)->at(index);
+
+ END_EXCEPTION
+
return 0;
}
More information about the llvm-commits
mailing list