static Type fixTypeInJava6(Type type) {
    if (type instanceof GenericArrayType) {
      GenericArrayType gat = (GenericArrayType) type;
      Type componentType = gat.getGenericComponentType();
      if (componentType instanceof Class) {
        return Array.newInstance((Class) componentType, 0).getClass();
      }
    }
    return type;
  }
static Type fixTypeInJava6 ( Type type ) { if ( type instanceof GenericArrayType ) { GenericArrayType gat = ( GenericArrayType ) type ; Type componentType = gat . getGenericComponentType ( ) ; if ( componentType instanceof Class ) { return Array . newInstance ( ( Class ) componentType , 0 ) . getClass ( ) ; } } return type ; }
java6中，利用反射获得int[]，Integer[]等类型的genericType时，可能会得到泛型数组，
下面的方法会将泛型数组转为class