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

Original committer: pedemont%us.ibm.com
Original revision: 1.20
Original date: 2005/01/12 17:36:11
This commit is contained in:
pedemont%us.ibm.com 2006-09-27 15:18:45 +00:00
parent cada4607a7
commit 8956fd9bb3

View File

@ -545,13 +545,13 @@ ThrowXPCOMException(JNIEnv* env, const nsresult aErrorCode,
nsCAutoString methodSig("("); nsCAutoString methodSig("(");
if (aErrorCode) { if (aErrorCode) {
args[index++].j = aErrorCode; args[index++].j = aErrorCode;
methodSig.Append("J"); methodSig.Append('J');
} }
if (aMessage) { if (aMessage) {
args[index].l = env->NewStringUTF(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 // create exception object
jthrowable throwObj = nsnull; jthrowable throwObj = nsnull;