You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/07/27 00:37:50 UTC

svn commit: r1366215 - /subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp

Author: rhuijben
Date: Thu Jul 26 22:37:50 2012
New Revision: 1366215

URL: http://svn.apache.org/viewvc?rev=1366215&view=rev
Log:
Enable returning an error on malfunctions for JavaHL. We shouldn't
crash the JVM unless absolutely necessary as this might make users
of tools like Subclipse loose their work.

* subversion/bindings/javahl/native/JNIUtil.cpp
  (JNIGlobalInit): Set malfunction handler.

Modified:
    subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp

Modified: subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp?rev=1366215&r1=1366214&r2=1366215&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/JNIUtil.cpp Thu Jul 26 22:37:50 2012
@@ -240,6 +240,8 @@ bool JNIUtil::JNIGlobalInit(JNIEnv *env)
     }
 #endif
 
+  svn_error_set_malfunction_handler(svn_error_raise_on_malfunction);
+
   // Build all mutexes.
   g_finalizedObjectsMutex = new JNIMutex(g_pool);
   if (isExceptionThrown())