From: megacz Date: Fri, 30 Jan 2004 06:49:30 +0000 (+0000) Subject: 2002/08/07 03:24:48 X-Git-Tag: RC3~1598 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=7e48eead16f215c6f1802888a03847e267722f43 2002/08/07 03:24:48 darcs-hash:20040130064930-2ba56-479a759f64fecef0bf8f8fc3bc454257c7f0056d.gz --- diff --git a/CHANGES b/CHANGES index e4869d6..547a8db 100644 --- a/CHANGES +++ b/CHANGES @@ -313,3 +313,6 @@ 30-Jul corey build.xml: patch to make build.xml not depend on +06-Jul megacz Context.java: workaround for GCJ bug which causes + MessageFormatter to choke on { and } + diff --git a/src/org/mozilla/javascript/Context.java b/src/org/mozilla/javascript/Context.java index 6e6dfbb..514bfdf 100644 --- a/src/org/mozilla/javascript/Context.java +++ b/src/org/mozilla/javascript/Context.java @@ -1725,8 +1725,8 @@ public class Context { { "msg.no.paren.parms", "missing ( before function parameters" }, { "msg.no.parm", "missing formal parameter" }, { "msg.no.paren.after.parms", "missing ) after formal parameters" }, - { "msg.no.brace.body", "missing '{' before function body" }, - { "msg.no.brace.after.body", "missing } after function body" }, + { "msg.no.brace.body", "missing open brace before function body" }, + { "msg.no.brace.after.body", "missing close brace after function body" }, { "msg.no.paren.cond", "missing ( before condition" }, { "msg.no.paren.after.cond", "missing ) after condition" }, { "msg.no.semi.stmt", "missing ; before statement" }, @@ -1734,7 +1734,7 @@ public class Context { { "msg.no.bracket.index", "missing ] in index expression" }, { "msg.no.paren.switch", "missing ( before switch expression" }, { "msg.no.paren.after.switch", "missing ) after switch expression" }, - { "msg.no.brace.switch", "missing '{' before switch body" }, + { "msg.no.brace.switch", "missing open brace before switch body" }, { "msg.bad.switch", "invalid switch statement" }, { "msg.no.colon.case", "missing : after case expression" }, { "msg.no.while.do", "missing while after do-loop body" }, @@ -1745,7 +1745,7 @@ public class Context { { "msg.no.paren.with", "missing ( before with-statement object" }, { "msg.no.paren.after.with", "missing ) after with-statement object" }, { "msg.bad.return", "invalid return" }, - { "msg.no.brace.block", "missing } in compound statement" }, + { "msg.no.brace.block", "missing close brace in compound statement" }, { "msg.bad.label", "invalid label" }, { "msg.bad.var", "missing variable name" }, { "msg.bad.var.init", "invalid variable initialization" }, @@ -1754,13 +1754,13 @@ public class Context { { "msg.no.bracket.arg", "missing ] after element list" }, { "msg.bad.prop", "invalid property id" }, { "msg.no.colon.prop", "missing : after property id" }, - { "msg.no.brace.prop", "missing } after property list" }, + { "msg.no.brace.prop", "missing close brace after property list" }, { "msg.no.paren", "missing ) in parenthetical" }, { "msg.reserved.id", "identifier is a reserved word" }, { "msg.no.paren.catch", "missing ( before catch-block condition" }, { "msg.bad.catchcond", "invalid catch block condition" }, { "msg.catch.unreachable", "any catch clauses following an unqualified catch are unreachable" }, - { "msg.no.brace.catchblock", "missing '{' before catch-block body" }, + { "msg.no.brace.catchblock", "missing open brace before catch-block body" }, { "msg.try.no.catchfinally", "''try'' without ''catch'' or ''finally''" }, { "msg.syntax", "syntax error" }, { "msg.assn.create", "Assignment to undefined \"{0}\" will create a new variable. Add a variable statement at the top level scope to remove this warning." },