return getEncodingOfClass(clazz.getName(), true);
if (! descriptor || type.charAt(0) == '[') return type.replace('.', '/'); if (type.equals("boolean")) return "Z"; if (type.equals("byte")) return "B"; if (type.equals("short")) return "S"; if (type.equals("char")) return "C"; if (type.equals("int")) return "I"; if (type.equals("long")) return "J"; if (type.equals("float")) return "F"; if (type.equals("double")) return "D"; if (type.equals("void")) return "V"; return 'L' + type.replace('.', '/') + ';';
  public static String getEncodingOfClass(Class clazz)  {    return getEncodingOfClass(clazz.getName(), true);  }