/* set the object in the internal data structure */
- threads_thread_set_object(mainthread, t);
+ threads_thread_set_object(mainthread, (java_handle_t *) t);
#if defined(ENABLE_INTRP)
/* create interpreter stack */
if (t == NULL)
return false;
- threads_thread_set_object(thread, t);
+ threads_thread_set_object(thread, (java_handle_t *) t);
/* thread is completely initialized */
mainthread = threads_list_first();
mainthreado = (java_lang_Thread *) threads_thread_get_object(mainthread);
- group = LLNI_field_direct(mainthreado, group);
+ LLNI_field_get_ref(mainthreado, group, group);
#endif
}
#include "native/include/java_lang_Thread.h"
#if defined(WITH_CLASSPATH_GNU)
+# include "native/include/java_lang_Throwable.h"
# include "native/include/java_lang_VMThread.h"
#endif
LLNI_field_set_val(object, vm_thread, (java_lang_Object *) t);
#endif
- threads_thread_set_object(t, object);
+ threads_thread_set_object(t, (java_handle_t *) object);
/* set java.lang.Thread fields */