[libimdb-commit] CVS: libimdb/java JLog_jni.h,1.1,1.2
Status: Pre-Alpha
Brought to you by:
jveldhuis
|
From: Jerry V. <jve...@us...> - 2003-08-17 16:44:57
|
Update of /cvsroot/libimdb/libimdb/java
In directory sc8-pr-cvs1:/tmp/cvs-serv25067
Modified Files:
JLog_jni.h
Log Message:
tried out some exception call - disabled for now
Index: JLog_jni.h
===================================================================
RCS file: /cvsroot/libimdb/libimdb/java/JLog_jni.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** JLog_jni.h 16 Jun 2003 04:18:38 -0000 1.1
--- JLog_jni.h 17 Aug 2003 16:44:54 -0000 1.2
***************
*** 20,23 ****
--- 20,36 ----
%apply (jobject jobj) {(jobject jobj)};
+ #ifdef I_CAN_GET_THIS_TO_WORK
+ /* problem is the jvm dumps when I the throw case actually gets triggered */
+ %exception JLog_create {
+ $action
+ if ( result == NULL ) {
+ jclass clazz = (*jenv)->FindClass(jenv, "org.libimdb.swig.JLogException");
+ (*jenv)->ThrowNew(jenv, clazz, "memory failed");
+ return $null;
+ }
+ };
+ #endif
+
+
#endif /* SWIGJAVA */
|