Lines Matching defs:log
73 final Log log;
99 log = Log.instance(context);
205 log.error(tree.pos(), "unexpected.type",
251 log.error(pos, "try.resource.may.not.be.assigned", v);
253 log.error(pos, "cant.assign.val.to.final.var", v);
336 JavaFileObject prev = log.useSource(env.toplevel.sourcefile);
349 log.useSource(prev);
356 JavaFileObject prev = log.useSource(env.toplevel.sourcefile);
369 log.useSource(prev);
608 JavaFileObject prevSource = log.useSource(env.toplevel.sourcefile);
618 log.useSource(prevSource);
651 log.error(tree.pos(), "illegal.forward.ref");
658 log.error(tree.pos(), "intf.expected.here");
665 log.error(tree.pos(), "no.intf.expected.here");
670 log.error(tree.pos(),
747 log.error(tree.params.head.pos(),
767 log.error(tree.thrown.head.pos(),
772 log.error(tree.typarams.head.pos(),
797 log.error(tree.pos(), "missing.meth.body.or.decl.abstract");
800 log.error(tree.pos(),
804 log.error(tree.body.pos(), "intf.meth.cant.have.body");
806 log.error(tree.pos(), "abstract.meth.cant.have.body");
808 log.error(tree.pos(), "native.meth.cant.have.body");
829 log.error(tree.body.stats.head.pos(),
959 log.error(tree.expr.pos(),
984 log.error(tree.pos(), "label.already.in.use",
1009 log.error(tree.selector.pos(), "string.switch.not.supported.in.source", sourceName);
1027 log.error(c.pat.pos(), "enum.label.must.be.unqualified.enum");
1029 log.error(c.pos(), "duplicate.case.label");
1035 log.error(c.pat.pos(),
1038 log.error(c.pos(), "duplicate.case.label");
1045 log.error(c.pos(), "duplicate.default.label");
1070 log.error(tree.pos(), "enum.label.must.be.unqualified.enum");
1153 boolean prevDeferDiags = log.deferDiagnostics;
1154 Queue<JCDiagnostic> prevDeferredDiags = log.deferredDiagnostics;
1156 log.deferDiagnostics = true;
1157 log.deferredDiagnostics = ListBuffer.lb();
1166 log.deferDiagnostics = prevDeferDiags;
1167 log.deferredDiagnostics = prevDeferredDiags;
1173 log.warning(LintCategory.TRY, pos, "try.resource.throws.interrupted.exc", resource);
1270 log.error(pos, "neither.conditional.subtype",
1339 log.error(pos, "not.loop.label", label);
1365 log.error(pos, "undef.label", label);
1367 log.error(pos, "cont.outside.loop");
1369 log.error(pos, "break.outside.switch.loop");
1378 log.error(tree.pos(), "ret.outside.meth");
1386 log.error(tree.expr.pos(),
1389 log.error(tree.pos(), "missing.ret.val");
1448 log.error(tree.meth.pos(), "no.superclass", site);
1479 log.error(tree.meth.pos(), "illegal.qual.not.icls",
1574 log.error(tree.pos(),"call.must.be.first.stmt.in.ctor",
1644 log.error(tree.encl.pos(), "anon.class.impl.intf.no.qual.for.new");
1646 log.error(tree.encl.pos(), "qualified.new.of.static.class", clazztype.tsym);
1667 boolean prevDeferDiags = log.deferDiagnostics;
1668 Queue<JCDiagnostic> prevDeferredDiags = log.deferredDiagnostics;
1672 log.deferDiagnostics = true;
1673 log.deferredDiagnostics = ListBuffer.lb();
1682 log.deferDiagnostics = prevDeferDiags;
1683 log.deferredDiagnostics = prevDeferredDiags;
1692 log.warning(tree.clazz.pos(), key, clazztype, inferred);
1704 log.error(tree.pos(), "enum.cant.be.instantiated");
1708 log.error(tree.pos(), "abstract.cant.be.instantiated",
1714 log.error(tree.args.head.pos(), "anon.class.impl.intf.no.args");
1717 log.error(tree.typeargs.head.pos(), "anon.class.impl.intf.no.typeargs");
1888 log.error(tree.clazz.pos(),
1967 log.error(tree.pos(), "illegal.initializer.for.type",
1978 log.error(tree.pos(), "generic.array.creation");
1987 log.error(tree.pos(), "illegal.start.of.type");
2104 log.error(tree.pos(), "incomparable.types", left, right);
2143 log.error(tree.pos(), "array.req.but.found", atype);
2202 log.error(tree.pos(),
2257 log.error(tree.pos(), "type.var.cant.be.deref");
2317 log.warning(LintCategory.TRY, tree, "try.explicit.close.call");
2432 log.error(pos, "type.var.cant.be.deref");
2456 log.error(pos, "cant.deref", site);
2562 log.error(tree.pos(), "undetermined.type", owntype1);
2638 log.error(tree.pos(), "illegal." + suffix);
2640 log.warning(tree.pos(), suffix, v);
2688 log.error(tree.pos(), "illegal.enum.static.ref");
2759 log.error(env.tree.pos(),
2797 log.warning(argtrees.last().pos(), "inexact.non-varargs.call",
2924 log.error(tree.pos(), "wrong.number.type.args",
2927 log.error(tree.pos(), "type.doesnt.take.params", clazztype.tsym);
2954 log.error(typeTree.pos(), "multicatch.types.must.be.disjoint", a, b);
2994 log.error(tree.bounds.tail.head.pos(),
3059 log.error(tree.pos(), "annotation.not.valid.for.type", pt);
3158 JavaFileObject prev = log.useSource(c.sourcefile);
3164 log.error(env.tree.pos(), "enum.no.subclassing");
3171 log.error(env.tree.pos(), "enum.types.not.extensible");
3177 log.useSource(prev);
3214 log.error(tree.implementing.head.pos(),
3217 log.error(tree.typarams.head.pos(),
3239 log.error(tree.extending.pos(), "generic.throwable");
3261 log.error(l.head.pos(), "icls.cant.have.static.decl", c);
3298 log.warning(LintCategory.SERIAL,
3307 log.warning(LintCategory.SERIAL,
3312 log.warning(LintCategory.SERIAL,
3317 log.warning(LintCategory.SERIAL,