Bug 270889 - Use correct versions of Append. r=darin.

git-svn-id: svn://10.0.0.236/trunk@167599 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2005-01-12 17:36:11 +00:00
parent 19fcee47a2
commit 6bd909acd4
3 changed files with 54 additions and 54 deletions

View File

@@ -545,13 +545,13 @@ ThrowXPCOMException(JNIEnv* env, const nsresult aErrorCode,
nsCAutoString methodSig("(");
if (aErrorCode) {
args[index++].j = aErrorCode;
methodSig.Append("J");
methodSig.Append('J');
}
if (aMessage) {
args[index].l = env->NewStringUTF(aMessage);
methodSig.Append("Ljava/lang/String;");
methodSig.AppendLiteral("Ljava/lang/String;");
}
methodSig.Append(")V");
methodSig.AppendLiteral(")V");
// create exception object
jthrowable throwObj = nsnull;