docs: static final int fromType(String type, ConstantPool pool) {
      if (type.length() == 1) {
        switch (type.charAt(0)) {
          case 'B': // sbyte
          case 'C': // unicode char
          case 'S': // short
          case 'Z': // boolean
          case 'I': // all of the above are verified as integers
            return INTEGER;
          case 'D':
            return DOUBLE;
          case 'F':
            return FLOAT;
          case 'J':
            return LONG;
          default:
            throw new IllegalArgumentException("bad type");
        }
      }
      return TypeInfo.OBJECT(type, pool);
    }