this.optionalCompileErrorHandler != null
? this.optionalCompileErrorHandler
: new UnitCompiler.ErrorHandler() {
int compileErrorCount = 0;
public void handleError(String message, Location optionalLocation) throws CompileException {
CompileException ex = new CompileException(message, optionalLocation);
if (++this.compileErrorCount >= 20) throw ex;
System.err.println(ex.getMessage());
}
}
);
this.benchmark.beginReporting();