log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name()); } else { log.warning(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name());
log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name()); } else { log.warning(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name());
log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name()); } else { log.warning(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name());
log.error(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name()); } else { log.warning(new SimpleDiagnosticPosition(dest.limit()), "illegal.char.for.encoding", charset == null ? encodingName : charset.name());
private boolean transferParseErrors( int literalOffset, StringLiteralTemplateParser.Expr comp, JCTree.JCExpression expr, DiagnosticCollector<JavaFileObject> errorHandler ) { if( expr == null || errorHandler.getDiagnostics().stream().anyMatch( e -> e.getKind() == Diagnostic.Kind.ERROR ) ) { for( Diagnostic<? extends JavaFileObject> diag : errorHandler.getDiagnostics() ) { if( diag.getKind() == Diagnostic.Kind.ERROR ) { JCDiagnostic jcDiag = ((ClientCodeWrapper.DiagnosticSourceUnwrapper)diag).d; String code = debaseMsgCode( diag ); IDynamicJdk.instance().logError( Log.instance( _javacTask.getContext() ), new JCDiagnostic.SimpleDiagnosticPosition( literalOffset + 1 + comp.getOffset() ), code, jcDiag.getArgs() ); } } return true; } return false; }
public JCDiagnostic.DiagnosticPosition pos(DCDocComment dc) { return new SimpleDiagnosticPosition(dc.comment.getSourcePos(pos)); }
private DiagnosticPosition wrap(int pos) { return (pos == Position.NOPOS ? null : new SimpleDiagnosticPosition(pos)); }
public JCDiagnostic.DiagnosticPosition pos(DCDocComment dc) { return new SimpleDiagnosticPosition(dc.comment.getSourcePos(pos)); }
private DiagnosticPosition wrap(int pos) { return (pos == Position.NOPOS ? null : new SimpleDiagnosticPosition(pos)); }
private DiagnosticPosition wrap(int pos) { return (pos == Position.NOPOS ? null : new SimpleDiagnosticPosition(pos)); }
private DiagnosticPosition wrap(int pos) { return (pos == Position.NOPOS ? null : new SimpleDiagnosticPosition(pos)); }
/** * Report a syntax using the given the position parameter and arguments, * unless one was already reported at the same position. */ private void reportSyntaxError(int pos, String key, Object... args) { JCDiagnostic.DiagnosticPosition diag = new JCDiagnostic.SimpleDiagnosticPosition(pos); reportSyntaxError(diag, key, args); }
/** * Report a syntax using the given the position parameter and arguments, * unless one was already reported at the same position. */ private void reportSyntaxError(int pos, String key, Object... args) { JCDiagnostic.DiagnosticPosition diag = new JCDiagnostic.SimpleDiagnosticPosition(pos); reportSyntaxError(diag, key, args); }