Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: exceptions.c 7246 2007-01-29 18:49:05Z twisti $
+ $Id: exceptions.c 7261 2007-01-31 10:00:12Z twisti $
*/
}
+/* exceptions_new_error ********************************************************
+
+ Generates a java.lang.Error for the VM.
+
+*******************************************************************************/
+
+#if defined(ENABLE_JAVAME_CLDC1_1)
+static java_objectheader *exceptions_new_error(utf *message)
+{
+ java_objectheader *o;
+
+ o = exceptions_new_class_utf(class_java_lang_Error, message);
+
+ return o;
+}
+#endif
+
+
/* exceptions_asm_new_abstractmethoderror **************************************
Generates a java.lang.AbstractMethodError for
#if defined(ENABLE_JAVASE)
e = exceptions_new_abstractmethoderror();
#else
- /* in the meantime we do this */
-
- e = exceptions_new_virtualmachineerror();
+ e = exceptions_new_error(utf_java_lang_AbstractMethodError);
#endif
/* remove the stackframeinfo */
}
-/* exceptions_throw_virtualmachineerror ****************************************
-
- Generates and throws a java.lang.VirtualMachineError for the VM.
-
-*******************************************************************************/
-
-void exceptions_throw_virtualmachineerror(void)
-{
- exceptions_throw_class(class_java_lang_VirtualMachineError);
-}
-
-
/* exceptions_new_arithmeticexception ******************************************
Generates a java.lang.ArithmeticException for the JIT compiler.
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: exceptions.h 7246 2007-01-29 18:49:05Z twisti $
+ $Id: exceptions.h 7261 2007-01-31 10:00:12Z twisti $
*/
void exceptions_throw_outofmemoryerror(void);
void exceptions_throw_verifyerror(methodinfo *m, const char *message, ...);
void exceptions_throw_verifyerror_for_stack(methodinfo *m, int type);
-void exceptions_throw_virtualmachineerror(void);
void exceptions_throw_unsatisfiedlinkerror(utf *name);
void exceptions_throw_unsupportedclassversionerror(classinfo *c, u4 ma, u4 mi);