GaiaXAndroidQuickJS/src/main/java/com/alibaba/gaiax/quickjs/Method.java [48:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static String getTypeSignature(Type type) {
        // Array
        if (type instanceof Types.GenericArrayTypeImpl) {
            return "[" + getTypeSignature(((Types.GenericArrayTypeImpl) type).getGenericComponentType());
        }

        // Primitive
        if (type instanceof Class && ((Class<?>) type).isPrimitive()) {
            if (type == void.class) return "V";
            if (type == boolean.class) return "Z";
            if (type == byte.class) return "B";
            if (type == char.class) return "C";
            if (type == short.class) return "S";
            if (type == int.class) return "I";
            if (type == long.class) return "J";
            if (type == float.class) return "F";
            if (type == double.class) return "D";
        }

        // Class
        Class<?> clazz = Types.getRawType(type);
        String name = clazz.getName();
        StringBuilder sb = new StringBuilder(name.length() + 2);
        sb.append("L");
        for (int i = 0; i < name.length(); i++) {
            char c = name.charAt(i);
            sb.append(c == '.' ? '/' : c);
        }
        sb.append(";");
        return sb.toString();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



GaiaXAndroidJS/src/main/kotlin/com/alibaba/gaiax/js/support/GXMethod.java [48:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static String getTypeSignature(Type type) {
        // Array
        if (type instanceof Types.GenericArrayTypeImpl) {
            return "[" + getTypeSignature(((Types.GenericArrayTypeImpl) type).getGenericComponentType());
        }

        // Primitive
        if (type instanceof Class && ((Class<?>) type).isPrimitive()) {
            if (type == void.class) return "V";
            if (type == boolean.class) return "Z";
            if (type == byte.class) return "B";
            if (type == char.class) return "C";
            if (type == short.class) return "S";
            if (type == int.class) return "I";
            if (type == long.class) return "J";
            if (type == float.class) return "F";
            if (type == double.class) return "D";
        }

        // Class
        Class<?> clazz = Types.getRawType(type);
        String name = clazz.getName();
        StringBuilder sb = new StringBuilder(name.length() + 2);
        sb.append("L");
        for (int i = 0; i < name.length(); i++) {
            char c = name.charAt(i);
            sb.append(c == '.' ? '/' : c);
        }
        sb.append(";");
        return sb.toString();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



