[kaffe] CVS kaffe (guilhem): Clarified assertion failure in throwIOException.
Kaffe CVS
cvs-commits at kaffe.org
Wed Apr 27 03:48:28 PDT 2005
PatchSet 6427
Date: 2005/04/27 10:43:59
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Clarified assertion failure in throwIOException.
* libraries/clib/nio/FileChannel.c
(throwIOException): Clarified the reason we have a failed assertion.
Members:
ChangeLog:1.3955->1.3956
libraries/clib/nio/FileChannelImpl.c:1.9->1.10
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3955 kaffe/ChangeLog:1.3956
--- kaffe/ChangeLog:1.3955 Wed Apr 27 09:41:24 2005
+++ kaffe/ChangeLog Wed Apr 27 10:43:59 2005
@@ -1,3 +1,8 @@
+2005-04-27 Guilhem Lavaux <guilhem at kaffe.org>
+
+ * libraries/clib/nio/FileChannel.c
+ (throwIOException): Clarified the reason we have a failed assertion.
+
2005-04-27 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/exception.c (dispatchException):
Index: kaffe/libraries/clib/nio/FileChannelImpl.c
diff -u kaffe/libraries/clib/nio/FileChannelImpl.c:1.9 kaffe/libraries/clib/nio/FileChannelImpl.c:1.10
--- kaffe/libraries/clib/nio/FileChannelImpl.c:1.9 Sat Apr 16 15:13:46 2005
+++ kaffe/libraries/clib/nio/FileChannelImpl.c Wed Apr 27 10:44:01 2005
@@ -24,7 +24,12 @@
static inline void
throwIOException(JNIEnv *env, int rc)
{
- jclass clazz = (*env)->FindClass(env, "java.io.IOException");
+ jclass clazz = (*env)->FindClass(env, "java/io/IOException");
+
+ if ((*env)->ExceptionOccurred(env)) {
+ (*env)->ExceptionDescribe(env);
+ (*env)->FatalError(env, "An unexpected exception has been thrown while looking up java/io/IOException");
+ }
assert(clazz != NULL);
(*env)->ThrowNew(env, clazz, SYS_ERROR(rc));
More information about the kaffe
mailing list