* Removed all Id tags.
[cacao.git] / src / native / vm / cldc1.1 / java_lang_Object.c
index 369e21e1601a975704614a38a11cc880337bd25e..2f6698c49da1f5cb57e44ab0aaa3226b9746f105 100644 (file)
@@ -22,8 +22,6 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: java_lang_VMRuntime.c 5900 2006-11-04 17:30:44Z michi $
-
 */
 
 
@@ -34,6 +32,7 @@
 #include "vm/types.h"
 
 #include "native/jni.h"
+#include "native/llni.h"
 #include "native/native.h"
 
 #include "native/include/java_lang_String.h"             /* required by j.l.C */
@@ -78,17 +77,17 @@ void _Jv_java_lang_Object_init(void)
  */
 JNIEXPORT java_lang_Class* JNICALL Java_java_lang_Object_getClass(JNIEnv *env, java_lang_Object *obj)
 {
-       java_objectheader *o;
-       classinfo         *c;
+       java_handle_t *o;
+       classinfo     *c;
 
-       o = (java_objectheader *) obj;
+       o = (java_handle_t *) obj;
 
        if (o == NULL)
                return NULL;
 
        c = o->vftbl->class;
 
-       return (java_lang_Class *) c;
+       return LLNI_classinfo_wrap(c);
 }