Fixing a regression: Compiler exceptions are now reported to the Exception Analyzer
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user