Author: mturk Date: Fri Jun 19 07:28:21 2009 New Revision: 786398 URL: http://svn.apache.org/viewvc?rev=786398&view=rev Log: Use DEBUG for printing to the stderr
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/clazz.c commons/sandbox/runtime/trunk/src/main/native/shared/error.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/clazz.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/clazz.c?rev=786398&r1=786397&r2=786398&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/clazz.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/clazz.c Fri Jun 19 07:28:21 2009 @@ -78,7 +78,7 @@ core_classes[i].clazz = (jclass)(*_E)->NewGlobalRef(_E, o); (*_E)->DeleteLocalRef(_E, o); if (core_classes[i].clazz == NULL) { -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot reference core class '%s'\n", core_classes[i].name); fflush(stderr); @@ -87,7 +87,7 @@ } } else { -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot find core class '%s'\n", core_classes[i].name); fflush(stderr); @@ -136,7 +136,7 @@ /* According to the JNI spec this can * happen if the system runs out of memory. */ -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot reference class '%s'\n", name); fflush(stderr); #endif @@ -153,7 +153,7 @@ /* Class cannot fe found. The exception has already * been thrown. */ -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot find class '%s'\n", name); fflush(stderr); #endif Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/error.c?rev=786398&r1=786397&r2=786398&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/error.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/error.c Fri Jun 19 07:28:21 2009 @@ -57,7 +57,7 @@ if (!env) env = ACR_GetJNIEnv(); if (!env) { -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot allocate JNI Environment\n"); if (msg) fprintf(stderr, "[ERROR] %s\n", msg); @@ -67,7 +67,7 @@ } if ((*env)->ExceptionCheck(env)) { /* We already have a pending exception. */ -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[INFO] Exception is already in the queue.\n"); fprintf(stderr, "[INFO] Class '%s' was not thrown.\n", clazz); if (msg) @@ -82,7 +82,7 @@ * the Exception has already been thrown. * See JNI Find Class for the Exceptions thrown. */ -#ifdef ACR_ENABLE_TEST +#ifdef DEBUG fprintf(stderr, "[ERROR] Cannot find class '%s'\n", clazz); if (msg) fprintf(stderr, "[ERROR] %s\n", msg);