/** report a warning: */ public void rawWarning(int pos, String msg) { if (nwarnings < MaxWarnings && emitWarnings) { printRawError(pos, "warning: " + msg); } prompt(); nwarnings++; errWriter.flush(); }
/** report a warning: */ public void rawWarning(int pos, String msg) { if (nwarnings < MaxWarnings && emitWarnings) { printRawError(pos, "warning: " + msg); } prompt(); nwarnings++; errWriter.flush(); }
/** report a warning: */ public void rawWarning(int pos, String msg) { if (nwarnings < MaxWarnings && emitWarnings) { printRawError(pos, "warning: " + msg); } prompt(); nwarnings++; errWriter.flush(); }
/** report a warning: */ public void rawWarning(int pos, String msg) { if (nwarnings < MaxWarnings && emitWarnings) { printRawError(pos, "warning: " + msg); } prompt(); nwarnings++; errWriter.flush(); }
/** report an error: */ public void rawError(int pos, String msg) { if (nerrors < MaxErrors && shouldReport(currentSourceFile(), pos)) { printRawError(pos, msg); prompt(); nerrors++; } errWriter.flush(); }
/** report an error: */ public void rawError(int pos, String msg) { if (nerrors < MaxErrors && shouldReport(currentSource(), pos)) { printRawError(pos, msg); prompt(); nerrors++; } errWriter.flush(); }
/** report an error: */ public void rawError(int pos, String msg) { if (nerrors < MaxErrors && shouldReport(currentSourceFile(), pos)) { printRawError(pos, msg); prompt(); nerrors++; } errWriter.flush(); }
/** report an error: */ public void rawError(int pos, String msg) { if (nerrors < MaxErrors && shouldReport(currentSource(), pos)) { printRawError(pos, msg); prompt(); nerrors++; } errWriter.flush(); }
/** * Write out a diagnostic. */ protected void writeDiagnostic(JCDiagnostic diag) { if (diagListener != null) { diagListener.report(diag); return; } PrintWriter writer = getWriterForDiagnosticType(diag.getType()); printRawLines(writer, diagFormatter.format(diag, messages.getCurrentLocale())); if (promptOnError) { switch (diag.getType()) { case ERROR: case WARNING: prompt(); } } if (dumpOnError) new RuntimeException().printStackTrace(writer); writer.flush(); }
/** * Write out a diagnostic. */ protected void writeDiagnostic(JCDiagnostic diag) { if (diagListener != null) { diagListener.report(diag); return; } PrintWriter writer = getWriterForDiagnosticType(diag.getType()); printRawLines(writer, diagFormatter.format(diag, messages.getCurrentLocale())); if (promptOnError) { switch (diag.getType()) { case ERROR: case WARNING: prompt(); } } if (dumpOnError) new RuntimeException().printStackTrace(writer); writer.flush(); }
case ERROR: case WARNING: prompt();
case ERROR: case WARNING: prompt();