You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/18 12:59:11 UTC

svn commit: r766298 - in /commons/sandbox/runtime/trunk/src/main/native/shared: descriptor.c pointer.c

Author: mturk
Date: Sat Apr 18 10:59:11 2009
New Revision: 766298

URL: http://svn.apache.org/viewvc?rev=766298&view=rev
Log:
Check for exceptions only if defined by #define

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
    commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c?rev=766298&r1=766297&r2=766298&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c Sat Apr 18 10:59:11 2009
@@ -230,10 +230,12 @@
 {
     if (_clazzn.i && _m0000n.i) {
         SET_IFIELD_P(0001, _O, (jniptr)((acr_ptr_t)p));
+#ifdef _JNI_CHECK_EXCEPTIONS
         if ((*_E)->ExceptionCheck(_E)) {
             return ACR_EGENERAL;
         }
         else
+#endif
             return ACR_SUCCESS;
     }
     else {
@@ -245,10 +247,12 @@
 {
     if (_clazzn.i && _m0000n.i) {
         SET_IFIELD_I(0000, _O, i);
+#ifdef _JNI_CHECK_EXCEPTIONS
         if ((*_E)->ExceptionCheck(_E)) {
             return ACR_EGENERAL;
         }
         else
+#endif
             return ACR_SUCCESS;
     }
     else {

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c?rev=766298&r1=766297&r2=766298&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c Sat Apr 18 10:59:11 2009
@@ -180,10 +180,12 @@
 {
     if (_clazzn.i && _m0000n.i) {
         SET_IFIELD_P(0000, _O, (jniptr)((acr_ptr_t)p));
+#ifdef _JNI_CHECK_EXCEPTIONS
         if ((*_E)->ExceptionCheck(_E)) {
             return ACR_EGENERAL;
         }
         else
+#endif
             return ACR_SUCCESS;
     }
     else {