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/06/19 09:22:21 UTC

svn commit: r786396 - in /commons/sandbox/runtime/trunk/src/main: java/org/apache/commons/runtime/Native.java native/shared/native.c

Author: mturk
Date: Fri Jun 19 07:22:20 2009
New Revision: 786396

URL: http://svn.apache.org/viewvc?rev=786396&view=rev
Log:
set or get exception handler doesn't throw exceptions

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Native.java
    commons/sandbox/runtime/trunk/src/main/native/shared/native.c

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Native.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Native.java?rev=786396&r1=786395&r2=786396&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Native.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Native.java Fri Jun 19 07:22:20 2009
@@ -63,15 +63,13 @@
     }
 
     public static void enableExceptionHandler()
-        throws Throwable
     {
-		sseh0(true);
+        sseh0(true);
     }
 
     public static void disableExceptionHandler()
-        throws Throwable
     {
-		sseh0(false);
+        sseh0(false);
     }
 
 }

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/native.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/native.c?rev=786396&r1=786395&r2=786396&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/native.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/native.c Fri Jun 19 07:22:20 2009
@@ -37,5 +37,5 @@
 
 ACR_JNI_EXPORT_DECLARE(void, Native, sseh0)(ACR_JNISTDARGS, jboolean on)
 {
-	ACR_SetExceptionHandlerMode(on ? ACR_SEH_THROW : ACR_SEH_NONE);
+    ACR_SetExceptionHandlerMode(on ? ACR_SEH_THROW : ACR_SEH_NONE);
 }