Java 做数组拼接时 java.lang.UnsupportedOperationException

          Field[] fields = clazz.getDeclaredFields();
                Class<?> superClass = clazz.getSuperclass();
                Field[] fields2 = superClass.getDeclaredFields();
                List<Field> list = new ArrayList(Arrays.asList(fields));
                List<Field> list2 = Arrays.asList(fields2);
                list.addAll(new ArrayList(list2));

ref : http://blog.csdn.net/thunderous/article/details/3693362

原文地址:https://www.cnblogs.com/shouwangzhe-/p/4157042.html