/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | AbstractLog.java | 48 AbstractLog(JCDiagnostic.Factory diags) { argument 49 this.diags = diags; 84 report(diags.error(source, null, key, args)); 94 report(diags.error(source, pos, key, args)); 105 JCDiagnostic d = diags.error(source, pos, key, args); 117 report(diags.error(source, wrap(pos), key, args)); 128 JCDiagnostic d = diags.error(source, wrap(pos), key, args); 140 report(diags.warning(source, null, key, args)); 150 report(diags 253 protected JCDiagnostic.Factory diags; field in class:AbstractLog [all...] |
H A D | RichDiagnosticFormatter.java | 72 final JCDiagnostic.Factory diags; field in class:RichDiagnosticFormatter 96 this.diags = JCDiagnostic.Factory.instance(context); 204 JCDiagnostic d = diags.fragment(key, whereClauses.get(kind).keySet()); 496 JCDiagnostic d = diags.fragment("where.captured"+ suffix, t, t.bound, t.lower, t.wildcard); 511 JCDiagnostic d = diags.fragment("where.intersection", t, interfaces.prepend(supertype)); 544 JCDiagnostic d = diags.fragment("where.typevar" + 610 String diagOpts = options.get("diags");
|
H A D | Log.java | 358 writeDiagnostic(diags.warning(source, pos, key, args));
|
/openjdk7/langtools/test/tools/javac/annotations/ |
H A D | TestAnnotationPackageInfo.java | 74 List<Diagnostic<? extends JavaFileObject>> diags = coll.getDiagnostics(); 75 switch (diags.size()) { 79 String code = diags.get(0).getCode(); 82 throw new Exception("unexpected diag: " + diags.get(0)); 84 throw new Exception("unexpected diags reported: " + diags);
|
/openjdk7/langtools/test/tools/javac/api/guide/ |
H A D | Test.java | 70 DiagnosticCollector<JavaFileObject> diags = new DiagnosticCollector<JavaFileObject>(); 71 task = tool.getTask(null, fm, diags, Collections.singleton("-Xlint:all"), 75 String msg = diags.getDiagnostics().get(0).getMessage(null); 76 long lineno = diags.getDiagnostics().get(0).getLineNumber();
|
/openjdk7/langtools/test/tools/javac/processing/6414633/ |
H A D | T6414633.java | 63 // two annotations on the same element -- expect 2 diags from the processor 64 if (dl.diags != 2) 65 throw new AssertionError(dl.diags + " diagnostics reported"); 81 diags++; 84 int diags; field in class:T6414633.MyDiagListener
|
/openjdk7/langtools/test/tools/javap/ |
H A D | T4777949.java | 57 List<Diagnostic<? extends JavaFileObject>> diags = 60 for (Diagnostic<? extends JavaFileObject> d: diags) { 92 List<Diagnostic<? extends JavaFileObject>> diags = dc.getDiagnostics(); 98 + diags + "\n" 101 return diags;
|
/openjdk7/langtools/test/tools/javac/classreader/ |
H A D | T7031108.java | 89 List<Diagnostic<? extends JavaFileObject>> diags =dc.getDiagnostics(); 91 System.err.println(diags); 92 switch (diags.size()) { 96 String code = diags.get(0).getCode(); 103 throw new Exception("unexpected diags received");
|
/openjdk7/hotspot/test/runtime/6925573/ |
H A D | SortMethodsTest.java | 80 DiagnosticCollector<JavaFileObject> diags = new DiagnosticCollector<JavaFileObject>(); 87 MemoryFileManager mfm = new MemoryFileManager(comp.getStandardFileManager(diags, null, null), file); 88 CompilationTask task = comp.getTask(null, mfm, diags, null, null, Arrays.asList(file)); 107 for (Diagnostic diag : diags.getDiagnostics()) {
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/comp/ |
H A D | Resolve.java | 72 JCDiagnostic.Factory diags; field in class:Resolve 109 diags = JCDiagnostic.Factory.instance(context); 119 inapplicableMethodException = new InapplicableMethodException(diags); 486 JCDiagnostic.Factory diags; field in class:Resolve.InapplicableMethodException 488 InapplicableMethodException(JCDiagnostic.Factory diags) { argument 490 this.diags = diags; 497 this.diagnostic = key != null ? diags.fragment(key) : null; 501 this.diagnostic = key != null ? diags.fragment(key, args) : null; 581 diags [all...] |
H A D | Infer.java | 59 JCDiagnostic.Factory diags; field in class:Infer 74 diags = JCDiagnostic.Factory.instance(context); 76 new NoInstanceException(true, diags); 78 new NoInstanceException(false, diags); 80 new InvalidInstanceException(diags); 87 InferenceException(JCDiagnostic.Factory diags) { argument 88 super(diags); 97 NoInstanceException(boolean isAmbiguous, JCDiagnostic.Factory diags) { argument 98 super(diags); 106 InvalidInstanceException(JCDiagnostic.Factory diags) { argument [all...] |
H A D | Check.java | 67 private final JCDiagnostic.Factory diags; field in class:Check 99 diags = JCDiagnostic.Factory.instance(context); 443 return typeError(pos, diags.fragment("possible.loss.of.precision"), found, req); 452 return typeError(pos, diags.fragment(errKey), found, req); 480 diags.fragment("incompatible.types" + (d!=null ? ".1" : ""), d), 505 diags.fragment("inconvertible.types"), 559 diags.fragment("type.req.class"), 561 ? diags.fragment("type.parameter", t) 579 diags.fragment("type.req.exact"), 594 diags [all...] |
H A D | MemberEnter.java | 76 private final JCDiagnostic.Factory diags; field in class:MemberEnter 102 diags = JCDiagnostic.Factory.instance(context); 141 JCDiagnostic msg = diags.fragment("fatal.err.no.java.lang");
|
H A D | Attr.java | 84 final JCDiagnostic.Factory diags; field in class:Attr 110 diags = JCDiagnostic.Factory.instance(context); 962 diags.fragment("type.req.array.or.iterable")); 1890 diags.fragment("diamond", clazztype.tsym), 2849 chk.typeError(tree.pos(), diags.fragment("incompatible.types"), actual, formal);
|
/openjdk7/langtools/test/tools/javac/Diagnostics/6769027/ |
H A D | T6769027.java | 108 String flags = opts.get("diags"); 110 opts.put("diags", flags); 134 String flags = opts.get("diags"); 136 opts.put("diags", flags); 350 JCDiagnostic.Factory diags = JCDiagnostic.Factory.instance(ctx); 352 JCDiagnostic d = diags.error(log.currentSource(), 356 JCDiagnostic sub = diags.fragment(errorKind.key(), "Hello!"); 433 " diags= " + java.util.Arrays.asList(xdiagsSource.flag, xdiagsCompact.flag) +
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/processing/ |
H A D | JavacProcessingEnvironment.java | 146 JCDiagnostic.Factory diags; field in class:JavacProcessingEnvironment 166 diags = JCDiagnostic.Factory.instance(context); 1259 JCDiagnostic msg = diags.fragment("fatal.err.cant.close.loader");
|