On the 1.8.x-javahl-exception-crash branch:
Manually backport the fix from trunk JavaHL.

[in subversion/bindings/javahl]

* native/JNIUtil.h (JNIUtil::wrappedHandleSVNError):
   Declare new private method.
* native/JNIUtil.cpp
  (JNIUtil::wrappedHandleSVNError): Renamed from JNIUtil::handleSVNError.
   Removed the bit that (only sometimes) clears the SVN error.
  (JNIUtil::handleSVNError): New wrapper for above that always clears the error.
  (JNIUtil::thrownExceptionToCString): Use the concrete exception class
   to retreive the message, and never return a NULL message if an exception
   was thrown.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x-javahl-exception-crash@1586439 13f79535-47bb-0310-9956-ffa450edef68