Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 58170 invoked from network); 6 Dec 2007 11:55:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2007 11:55:43 -0000 Received: (qmail 75199 invoked by uid 500); 6 Dec 2007 11:55:31 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 75180 invoked by uid 500); 6 Dec 2007 11:55:31 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 75158 invoked by uid 99); 6 Dec 2007 11:55:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 03:55:31 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 11:55:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D31EE1A9832; Thu, 6 Dec 2007 03:55:11 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r601711 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Date: Thu, 06 Dec 2007 11:55:10 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071206115511.D31EE1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Thu Dec 6 03:55:05 2007 New Revision: 601711 URL: http://svn.apache.org/viewvc?rev=601711&view=rev Log: Whitespace only change. Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c?rev=601711&r1=601710&r2=601711&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c (original) +++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Thu Dec 6 03:55:05 2007 @@ -307,27 +307,27 @@ char *errorMessage = netLookupErrorString (env, errorNumber); jstring errorMessageString = (*env)->NewStringUTF (env,errorMessage); if (HYPORT_ERROR_SOCKET_WOULDBLOCK == errorNumber){ - errorCodeExClass = (*env)->FindClass (env, "org/apache/harmony/luni/util/ErrorCodeException"); - if (!errorCodeExClass){ - return; - } - errorCodeExConstructor = (*env)->GetMethodID(env,errorCodeExClass,"","(I)V"); - if (!errorCodeExConstructor){ - return; - } - errorCodeEx = (*env)->NewObject(env, errorCodeExClass,errorCodeExConstructor,errorNumber); - socketExClass = (*env)->FindClass (env, "java/net/SocketException"); - if (!socketExClass) { - return; - } - socketExConstructor = (*env)->GetMethodID(env,socketExClass,"","(Ljava/lang/String;)V"); - if (!socketExConstructor) { - return; - } - socketEx = (*env)->NewObject(env, socketExClass, socketExConstructor, errorMessageString); - socketExCauseMethod = (*env)->GetMethodID(env,socketExClass,"initCause","(Ljava/lang/Throwable;)Ljava/lang/Throwable;"); - (*env)->CallObjectMethod(env,socketEx,socketExCauseMethod,errorCodeEx); - (*env)->Throw(env,socketEx); + errorCodeExClass = (*env)->FindClass (env, "org/apache/harmony/luni/util/ErrorCodeException"); + if (!errorCodeExClass){ + return; + } + errorCodeExConstructor = (*env)->GetMethodID(env,errorCodeExClass,"","(I)V"); + if (!errorCodeExConstructor){ + return; + } + errorCodeEx = (*env)->NewObject(env, errorCodeExClass,errorCodeExConstructor,errorNumber); + socketExClass = (*env)->FindClass (env, "java/net/SocketException"); + if (!socketExClass) { + return; + } + socketExConstructor = (*env)->GetMethodID(env,socketExClass,"","(Ljava/lang/String;)V"); + if (!socketExConstructor) { + return; + } + socketEx = (*env)->NewObject(env, socketExClass, socketExConstructor, errorMessageString); + socketExCauseMethod = (*env)->GetMethodID(env,socketExClass,"initCause","(Ljava/lang/Throwable;)Ljava/lang/Throwable;"); + (*env)->CallObjectMethod(env,socketEx,socketExCauseMethod,errorCodeEx); + (*env)->Throw(env,socketEx); } throwNewExceptionByName(env, "java/net/SocketException", errorMessage); }