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

[in subversion/bindings/javahl]

* native/ClientContext.cpp
  (ClientContext::resolve): Make sure the result is always predictable.
* 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.7.x-javahl-exception-crash@1586463 13f79535-47bb-0310-9956-ffa450edef68
3 files changed