Properly handle [inout] string params when calling a Java method from XPCOM. Allocate enough space for PRUnichar string when returning to XPCOM.

This commit is contained in:
pedemont@us.ibm.com
2004-10-26 20:30:01 +00:00
parent 7be48b80e0
commit 8a7cef81b2
2 changed files with 18 additions and 12 deletions

View File

@@ -926,8 +926,6 @@ CallXPCOMMethod(JNIEnv *env, jclass that, jobject aJavaObject,
LOG("\t Param %d: ", i);
const nsXPTParamInfo &paramInfo = methodInfo->GetParam(i);
NS_ASSERTION(!paramInfo.IsDipper(), "Dipper!");
if (!paramInfo.IsRetval() && !paramInfo.IsDipper()) {
rv = SetupParams(env, env->GetObjectArrayElement(aParams, i), paramInfo,
methodInfo, iinfo, aMethodIndex, params, params[i]);