Commit 0a7b4ff1 authored by Quxl's avatar Quxl

x

parent efb7715d
...@@ -107,7 +107,7 @@ public class ReflexUtil { ...@@ -107,7 +107,7 @@ public class ReflexUtil {
Class<?> clz = obj.getClass(); Class<?> clz = obj.getClass();
Field field = clz.getDeclaredField(fieldName); Field field = clz.getDeclaredField(fieldName);
field.setAccessible(true); field.setAccessible(true);
field.set(obj, arg); field.set(obj, Util.objTo(arg, field.getType()));
} catch (Exception e) { } catch (Exception e) {
throw new ReflectException("FieldSetError", e); throw new ReflectException("FieldSetError", e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment