* new_illegalmonitorstateexception: Added.
authortwisti <none@none>
Thu, 3 Nov 2005 20:38:59 +0000 (20:38 +0000)
committertwisti <none@none>
Thu, 3 Nov 2005 20:38:59 +0000 (20:38 +0000)
src/cacaoh/headers.c
src/vm/exceptions.c
src/vm/exceptions.h

index c5eec190ed83dc5ac789e0057c4b8ca222497276..8feb1bcd3df31552e04a8ef9318ac2050572279c 100644 (file)
@@ -30,7 +30,7 @@
             Philipp Tomsich
             Christian Thalinger
 
-   $Id: headers.c 3459 2005-10-20 00:49:47Z edwin $
+   $Id: headers.c 3547 2005-11-03 20:38:59Z twisti $
 
 */
 
@@ -358,6 +358,17 @@ java_objectheader *new_unsupportedclassversionerror(classinfo *c, const char *me
 }
 
 
+java_objectheader *new_illegalmonitorstateexception(void)
+{
+       fprintf(stderr, "%s", string_java_lang_IllegalMonitorStateException);
+       exit(1);
+
+       /* keep compiler happy */
+
+       return NULL;
+}
+
+
 java_objectheader *new_negativearraysizeexception(void)
 {
        fprintf(stderr, "%s", string_java_lang_NegativeArraySizeException);
index da8cb68c5c6923b6d4ddb0ac93f3cbd7a9d4bbc2..e8a583b9508a7eff6fcdfe529ecfc2cd00f35d6f 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: exceptions.c 3498 2005-10-26 16:42:22Z twisti $
+   $Id: exceptions.c 3547 2005-11-03 20:38:59Z twisti $
 
 */
 
@@ -129,6 +129,13 @@ bool exceptions_init(void)
                !link_class(class_java_lang_IllegalArgumentException))
                return false;
 
+       /* java/lang/IllegalMonitorStateException */
+
+       if (!(class_java_lang_IllegalMonitorStateException =
+                 load_class_bootstrap(utf_java_lang_IllegalMonitorStateException)) ||
+               !link_class(class_java_lang_IllegalMonitorStateException))
+               return false;
+
        /* java/lang/NullPointerException */
 
        if (!(class_java_lang_NullPointerException =
@@ -818,6 +825,24 @@ java_objectheader *new_illegalargumentexception(void)
 }
 
 
+/* new_illegalmonitorstateexception ********************************************
+
+   Generates a java.lang.IllegalMonitorStateException for the VM
+   thread system.
+
+*******************************************************************************/
+
+java_objectheader *new_illegalmonitorstateexception(void)
+{
+       java_objectheader *e;
+
+       if (!(e = native_new_and_init(class_java_lang_IllegalMonitorStateException)))
+               return *exceptionptr;
+
+       return e;
+}
+
+
 /* new_negativearraysizeexception **********************************************
 
    generates a java.lang.NegativeArraySizeException for the jit compiler
index 7e41a8defe376653dab923d204d76e2a881ef9d6..52a906b936ee7a203fba45b3b1439226fb08aa90 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: exceptions.h 3466 2005-10-20 10:42:12Z edwin $
+   $Id: exceptions.h 3547 2005-11-03 20:38:59Z twisti $
 
 */
 
@@ -113,6 +113,7 @@ java_objectheader *new_arrayindexoutofboundsexception(s4 index);
 java_objectheader *new_arraystoreexception(void);
 java_objectheader *new_classcastexception(void);
 java_objectheader *new_illegalargumentexception(void);
+java_objectheader *new_illegalmonitorstateexception(void);
 java_objectheader *new_negativearraysizeexception(void);
 java_objectheader *new_nullpointerexception(void);