Project

Profile

Help

Bug #4410

Error: MyClassInDll.setBaseURI not found

Added by O'Neil Delpratt 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
C++ API
Start date:
2019-12-17
Due date:
% Done:

0%

Estimated time:
Found in version:
1.2.1
Fixed in version:

Description

Reported here: https://saxonica.plan.io/boards/4/topics/7728

The call to the setBaseURI method in the C++ class XPathProcessor gives the error:

Error: MyClassInDll.setBaseURI not found

History

#1 Updated by O'Neil Delpratt 9 months ago

  • Status changed from New to Resolved

Bug fixed and will be available in the next maintenance release.

The issue is we have incorrect method signature used in the JNI.

The setBaseURI is a void method, but we have it as returning a boolean:

(jmethodID) SaxonProcessor::sxn_environ->env->GetMethodID(cppClass, "setBaseURI",
				"(Ljava/lang/String;)Z");

Should be changed to:

(jmethodID) SaxonProcessor::sxn_environ->env->GetMethodID(cppClass, "setBaseURI",
				"(Ljava/lang/String;)V");

the workaround fix is to apply the simple fix in the C++ XPathProcessor.cpp file.

Please register to edit this issue

Also available in: Atom PDF