code: public static String arglistToJvm(String arglist) {
      if (!(arglist.startsWith("(") && arglist.endsWith(")"))) {
        throw new Error("Malformed arglist: " + arglist);
      }
      String result = "(";
      String commaSepArgs = arglist.substring(1, arglist.length() - 1);
      StringTokenizer argsTokenizer = new StringTokenizer(commaSepArgs, ",", false);
      while (argsTokenizer.hasMoreTokens()) {
        @SuppressWarnings("signature") // substring
        @BinaryName String arg = argsTokenizer.nextToken().trim();
        result += binaryNameToFieldDescriptor(arg);
      }
      result += ")";
      // System.out.println("arglistToJvm: " + arglist + " => " + result);
      return result;
    }
docs: Convert a fully-qualified argument list from Java format to JVML format. For example, convert
  "(java.lang.Integer[], int, java.lang.Integer[][])" to
  "([Ljava/lang/Integer;I[[Ljava/lang/Integer;)".
  
  @param arglist an argument list, in Java format
  @return argument list, in JVML format