Created a backport branch to fix the bug reported in
http://mail-archives.apache.org/mod_mbox/subversion-users/201404.mbox/%3CCAAVTFFjrZEy-PT3i1xu0mOM_AC89-237CmFEZ7QYcJxNckfEtA%40mail.gmail.com%3E

git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.7.x-javahl-exception-crash@1586451 13f79535-47bb-0310-9956-ffa450edef68
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
Merge the 1.7.x-javahl-exception-crash branch:

 * r1586439
   Fix a crash in JavaHL that was reported on the users@ list and is
   already fixed on trunk.
   Justification:
     JavaHL should not crash the JVM too often.
   Notes:
     The original report is here:
     http://mail-archives.apache.org/mod_mbox/subversion-users/201404.mbox/%3CCAAVTFFjrZEy-PT3i1xu0mOM_AC89-237CmFEZ7QYcJxNckfEtA%40mail.gmail.com%3E
   Branch:
     ^/subversion/branches/1.7.x-javahl-exception-crash
   Votes:
     +1: brane, rhuijben


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.7.x@1589334 13f79535-47bb-0310-9956-ffa450edef68