/* src/native/vm/cldc1.1/java_lang_Throwable.c - java/lang/Throwable
- Copyright (C) 2006 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+ Copyright (C) 2006, 2007 R. Grafl, A. Krall, C. Kruegel, C. Oates,
R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
Institut f. Computersprachen - TU Wien
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Joseph Wenninger
- Christian Thalinger
-
$Id: java_lang_VMThrowable.c 6213 2006-12-18 17:36:06Z twisti $
*/
#include "vm/types.h"
#include "native/jni.h"
+#include "native/native.h"
+
#include "native/include/java_lang_Object.h"
#include "native/include/java_lang_Throwable.h"
+
#include "vm/exceptions.h"
#include "vm/jit/stacktrace.h"
+/* native methods implemented by this file ************************************/
+
+static JNINativeMethod methods[] = {
+ { "printStackTrace", "()V", (void *) (ptrint) &Java_java_lang_Throwable_printStackTrace },
+ { "fillInStackTrace", "()V", (void *) (ptrint) &Java_java_lang_Throwable_fillInStackTrace },
+};
+
+
+/* _Jv_java_lang_Throwable_init ************************************************
+
+ Register native functions.
+
+*******************************************************************************/
+
+void _Jv_java_lang_Throwable_init(void)
+{
+ utf *u;
+
+ u = utf_new_char("java/lang/Throwable");
+
+ native_method_register(u, methods, NATIVE_METHODS_COUNT);
+}
+
+
/*
* Class: java/lang/Throwable
* Method: printStackTrace
/*
* Class: java/lang/Throwable
* Method: fillInStackTrace
- * Signature: (Ljava/lang/Throwable;)V
+ * Signature: ()V
*/
JNIEXPORT void JNICALL Java_java_lang_Throwable_fillInStackTrace(JNIEnv *env, java_lang_Throwable *this)
{