Martin Platter
Christian Thalinger
- $Id: jni.c 4082 2006-01-03 23:08:58Z twisti $
+ $Id: jni.c 4123 2006-01-10 20:46:50Z twisti $
*/
return true;
illegal_arg:
- *exceptionptr = new_illegalargumentexception();
+ exceptions_throw_illegalargumentexception();
return false;
}
STATISTICS(jniinvokation());
if (length < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (index >= array->header.size) {
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
return NULL;
}
o = (java_objectheader *) val;
if (index >= array->header.size) {
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
return;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (len < 0) {
- *exceptionptr = new_negativearraysizeexception();
+ exceptions_throw_negativearraysizeexception();
return NULL;
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jboolean, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jbyte, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jchar, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jshort, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jint, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jlong, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jfloat, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start+len>array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(buf, &array->data[start], jdouble, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jboolean, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jbyte, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jchar, len);
-
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jshort, len);
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jint, len);
-
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jlong, len);
-
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jfloat, len);
-
}
STATISTICS(jniinvokation());
if (start < 0 || len < 0 || start + len > array->header.size)
- *exceptionptr =
- new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
-
+ exceptions_throw_arrayindexoutofboundsexception();
else
MCOPY(&array->data[start], buf, jdouble, len);
}
STATISTICS(jniinvokation());
if (!obj) {
- *exceptionptr = new_nullpointerexception();
+ exceptions_throw_nullpointerexception();
return JNI_ERR;
}
jint MonitorExit(JNIEnv *env, jobject obj)
{
STATISTICS(jniinvokation());
+
if (!obj) {
- *exceptionptr = new_nullpointerexception();
+ exceptions_throw_nullpointerexception();
return JNI_ERR;
}