Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 16662 invoked from network); 16 Apr 2011 10:49:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 10:49:34 -0000 Received: (qmail 64079 invoked by uid 500); 16 Apr 2011 10:49:33 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 63997 invoked by uid 500); 16 Apr 2011 10:49:33 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 63990 invoked by uid 99); 16 Apr 2011 10:49:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 10:49:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 10:49:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B8C6023889D7; Sat, 16 Apr 2011 10:49:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1093960 - /commons/sandbox/runtime/trunk/src/main/native/shared/error.c Date: Sat, 16 Apr 2011 10:49:09 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110416104909.B8C6023889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mturk Date: Sat Apr 16 10:49:09 2011 New Revision: 1093960 URL: http://svn.apache.org/viewvc?rev=1093960&view=rev Log: Fix core Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c 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=1093960&r1=1093959&r2=1093960&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/error.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/error.c Sat Apr 16 10:49:09 2011 @@ -632,7 +632,7 @@ AcrThrowByName(JNI_STDENV, const char *c void AcrThrow(JNI_STDENV, int cls, const char *msg) { - jclass ec = 0; + jclass ec; if (env == 0) env = AcrGetJNIEnv(); @@ -654,7 +654,8 @@ AcrThrow(JNI_STDENV, int cls, const char } return; } - if (_throw_classes[cls].clazz == 0) { + ec = _throw_classes[cls].clazz; + if (ec == 0) { ec = (*env)->FindClass(env, _throw_classes[cls].name); if (ec == 0) { /* If the class cannot be found,