if (errors > 0)
throw new Exception(errors + " errors found");
}
void test(Object value, int tag, Type type, Object constValue) {
JCLiteral l = maker.Literal(value);
if (l.type.tag != tag)
error("unexpected tag: " + l.getTag() + ": expected: " + tag);
if (!types.isSameType(l.type, type))
error("unexpected type: " + l.type + ": expected: " + type);
if (l.type.constValue().getClass() != constValue.getClass()
|| !constValue.equals(l.type.constValue())) {
error("unexpected const value: "