[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix JavaHL error in SVNBase::createCppBoundObject

From: Alexandr Miloslavskiy <alexandr.miloslavskiy_at_syntevo.com>
Date: Tue, 15 Sep 2020 12:42:37 +0200

Please find patch attached.

Fix JavaHL error in SVNBase::createCppBoundObject

The problem here is that 'SVNBase::createCppBoundObject' can work
with different classes (see argument), but it cached methodID of
'<init>' for the first class processed.

The error is seen when running JavaHL tests with JDK14.

Error message is:
FATAL ERROR in native method: Wrong object class or methodID passed to
JNI call
   at <...>.javahl.util.SubstLib.translateOutputStream(Native Method)
   at <...>.javahl.SVNUtil.translateStream(SVNUtil.java:1046)
   at <...>.javahl.UtilTests.testTranslateStream(UtilTests.java:521)

[in subversion/bindings/javahl]
* native/SVNBase.cpp
   (createCppBoundObject): Do not cache methodID.

Received on 2020-09-15 13:07:54 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.