Fix for bug #321967 ("default xml namespace =" statement decompiles incorrectly)

This commit is contained in:
inonit%inonit.com 2007-01-28 19:23:51 +00:00
parent fd460c8167
commit da0fbeacc7

View File

@ -1085,14 +1085,14 @@ public class Parser
{
reportError("msg.bad.namespace");
}
decompiler.addName(ts.getString());
decompiler.addName(" xml");
if (!(matchToken(Token.NAME)
&& ts.getString().equals("namespace")))
{
reportError("msg.bad.namespace");
}
decompiler.addName(ts.getString());
decompiler.addName(" namespace");
if (!matchToken(Token.ASSIGN)) {
reportError("msg.bad.namespace");