diff --git a/src/corelib/kernel/qjniobject.h b/src/corelib/kernel/qjniobject.h index 0ba7209b85..05db6f4414 100644 --- a/src/corelib/kernel/qjniobject.h +++ b/src/corelib/kernel/qjniobject.h @@ -148,7 +148,9 @@ public: { QtJniTypes::assertObjectType(); constexpr auto signature = QtJniTypes::methodSignature(); - return callObjectMethod(methodName, signature.data(), std::forward(args)...); + LocalFrame frame; + return frame.template convertFromJni(callObjectMethod(methodName, signature, + frame.convertToJni(std::forward(args))...)); } QJniObject callObjectMethod(const char *methodName, const char *signature, ...) const;