code: public String toFieldDescriptor() {
          int i;
          StringBuilder result;
  
          result = new StringBuilder();
          for (i = 0; i < dimensions; i++) {
              result.append('[');
          }
          result.append(componentType.descriptor);
          if (componentType.id == T_REFERENCE) {
              result.append(name.replace('.', '/'));
              result.append(';');
          }
          return result.toString();
      }
docs: descriptor as defined in JVM spec $ 4.3.2