Java compiler error reporting fixed

This commit is contained in:
Andrey Breslav
2012-12-14 14:40:54 +04:00
parent 4df4a91615
commit f09054d1a0
@@ -385,7 +385,8 @@ public class JetTestUtils {
null,
javaFileObjectsFromFiles);
Assert.assertTrue(errorsToString(diagnosticCollector), task.call());
Boolean success = task.call(); // do NOT inline this variable, call() should complete before errorsToString()
Assert.assertTrue(errorsToString(diagnosticCollector), success);
} finally {
fileManager.close();
}