Authors: Christian Thalinger
Edwin Steiner
- $Id: exceptions.c 6240 2006-12-26 23:41:34Z twisti $
+ $Id: exceptions.c 6244 2006-12-27 15:15:31Z twisti $
*/
!link_class(class_java_lang_OutOfMemoryError))
return false;
+ /* java/lang/VirtualMachineError */
+
+ if (!(class_java_lang_VirtualMachineError =
+ load_class_bootstrap(utf_java_lang_VirtualMachineError)) ||
+ !link_class(class_java_lang_VirtualMachineError))
+ return false;
+
/* java/lang/Exception */
*******************************************************************************/
+#if defined(ENABLE_JAVASE)
java_objectheader *exceptions_new_abstractmethoderror(void)
{
java_objectheader *e;
return e;
}
+#endif
/* exceptions_asm_new_abstractmethoderror **************************************
*******************************************************************************/
+#if defined(ENABLE_JAVASE)
java_objectheader *exceptions_asm_new_abstractmethoderror(u1 *sp, u1 *ra)
{
stackframeinfo sfi;
return e;
}
+#endif
/* exceptions_throw_abstractmethoderror ****************************************
*******************************************************************************/
+#if defined(ENABLE_JAVASE)
void exceptions_throw_abstractmethoderror(void)
{
*exceptionptr = exceptions_new_abstractmethoderror();
}
+#endif
/* new_classformaterror ********************************************************
*******************************************************************************/
+#if defined(ENABLE_JAVASE)
java_objectheader *exceptions_new_nosuchmethoderror(classinfo *c,
utf *name, utf *desc)
{
MFREE(msg, char, msglen);
- if (!o)
+ if (o == NULL)
return *exceptionptr;
return o;
}
+#endif
/* exceptions_throw_nosuchmethoderror ******************************************
*******************************************************************************/
+#if defined(ENABLE_JAVASE)
void exceptions_throw_nosuchmethoderror(classinfo *c, utf *name, utf *desc)
{
*exceptionptr = exceptions_new_nosuchmethoderror(c, name, desc);
}
+#endif
/* new_unsupportedclassversionerror ********************************************
}
+/* exceptions_new_virtualmachineerror ******************************************
+
+ Generates a java.lang.VirtualMachineError for the VM system.
+
+*******************************************************************************/
+
+java_objectheader *exceptions_new_virtualmachineerror(void)
+{
+ java_objectheader *e;
+
+ e = native_new_and_init(class_java_lang_VirtualMachineError);
+
+ if (e == NULL)
+ return *exceptionptr;
+
+ return e;
+}
+
+
+/* exceptions_throw_virtualmachineerror ****************************************
+
+ Throws a java.lang.VirtualMachineError for the VM system.
+
+*******************************************************************************/
+
+void exceptions_throw_virtualmachineerror(void)
+{
+ *exceptionptr = exceptions_new_virtualmachineerror();
+}
+
+
/* new_arithmeticexception *****************************************************
Generates a java.lang.ArithmeticException for the jit compiler.