Fixing a regression: Compiler exceptions are now reported to the Exception Analyzer

This commit is contained in:
Andrey Breslav
2012-04-24 21:21:11 +04:00
parent 211fa9dd80
commit 81387c0745
@@ -481,12 +481,18 @@ public class JetCompiler implements TranslatingCompiler {
// We're directly inside the root tag: <MESSAGES> // We're directly inside the root tag: <MESSAGES>
return; return;
} }
CompilerMessageCategory category = CATEGORIES.get(qName.toLowerCase()); String qNameLowerCase = qName.toLowerCase();
CompilerMessageCategory category = CATEGORIES.get(qNameLowerCase);
if (category == null) { if (category == null) {
compileContext.addMessage(ERROR, "Unknown compiler message tag: " + qName, null, -1, -1); compileContext.addMessage(ERROR, "Unknown compiler message tag: " + qName, null, -1, -1);
category = INFORMATION; category = INFORMATION;
} }
String text = message.toString(); String text = message.toString();
if ("exception".equals(qNameLowerCase)) {
LOG.error(text);
}
if (category == STATISTICS) { if (category == STATISTICS) {
compileContext.getProgressIndicator().setText(text); compileContext.getProgressIndicator().setText(text);
collector.learn(text); collector.learn(text);