From 211fa9dd80d8f7474db94bc40dd2aaa69d9af3ad Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 24 Apr 2012 21:17:36 +0400 Subject: [PATCH] Don't treat the root tag as a message tag --- idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java index 3d79c66616d..463835c5084 100644 --- a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java +++ b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java @@ -477,6 +477,10 @@ public class JetCompiler implements TranslatingCompiler { @Override public void endElement(String uri, String localName, String qName) throws SAXException { + if (tags.size() == 1) { + // We're directly inside the root tag: + return; + } CompilerMessageCategory category = CATEGORIES.get(qName.toLowerCase()); if (category == null) { compileContext.addMessage(ERROR, "Unknown compiler message tag: " + qName, null, -1, -1);