code: void writeField(VarSymbol v) {
          int flags = adjustFlags(v.flags());
          databuf.appendChar(flags);
          if (dumpFieldModifiers) {
              PrintWriter pw = log.getWriter(Log.WriterKind.ERROR);
              pw.println("FIELD  " + v.name);
              pw.println("---" + flagNames(v.flags()));
          }
          databuf.appendChar(pool.put(v.name));
          databuf.appendChar(pool.put(typeSig(v.erasure(types))));
          int acountIdx = beginAttrs();
          int acount = 0;
          if (v.getConstValue() != null) {
              int alenIdx = writeAttr(names.ConstantValue);
              databuf.appendChar(pool.put(v.getConstValue()));
              endAttr(alenIdx);
              acount++;
          }
          acount += writeMemberAttrs(v);
          endAttrs(acountIdx, acount);
      }
docs: Write field symbol, entering all references into constant pool.